Use it in usage message. Split usage message to fit in 80 cols.
+Thu Jun 24 14:43:22 1993 David J. Mackenzie (djm@thepub.cygnus.com)
+
+ * gprof.c (main): Get whoami from argv, instead of hardcoding.
+ Use it in usage message. Split usage message to fit in 80 cols.
+
Sun Jun 20 20:58:02 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
* Makefile.in: Undo 15 June change.
bfd *abfd;
-char *whoami = "gprof";
+char *whoami;
/*
* things which get -E excluded by default.
char **sp;
nltype **timesortnlp;
+ whoami = argv[0];
--argc;
argv++;
debug = 0;
zflag = TRUE;
break;
default:
- fprintf (stderr, "usage: gprof [-a] [-b] [-c] [-d[num]] \
-[-E function-name] [-e function-name] \
-[-F function-name] [-f function-name] \
-[-k from to] [-s] [-T] [-z] [image-file] \
-[profile file(s)]\n");
+ fprintf (stderr, "\
+Usage: %s [-a] [-b] [-c] [-d[num]] [-E function-name] [-e function-name]\n\
+ [-F function-name] [-f function-name] [-k from to] [-s] [-T] [-z]\n\
+ [image-file] [profile-file...]\n", whoami);
exit (1);
}
argv++;