callgraph

runtime callgraph generator
git clone git://git.2f30.org/callgraph
Log | Files | Refs | README | LICENSE

commit e8d6e7bb9830667eb2a63ba6b97020e7fc9860b6
parent b9ddeaa35f7a685450c53eb68fdb57ba6ebcc7ad
Author: lostd <lostd@2f30.org>
Date:   Tue, 14 Jan 2014 12:26:40 +0200

More informative error message

Diffstat:
Mlibcallgraph.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcallgraph.c b/libcallgraph.c @@ -72,7 +72,7 @@ init_logging(void) f = "callgraph.dot"; fd = open(f, O_WRONLY | O_CREAT | O_EXCL, 0644); if (fd == -1) { - perror("cgraph"); + fprintf(stderr, "cgraph %s: %s\n", f, strerror(errno)); _Exit(EXIT_FAILURE); } }