PERFORCE change 133105 for review
John Birrell
jb at FreeBSD.org
Fri Jan 11 21:55:08 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133105
Change 133105 by jb at jb_freebsd1 on 2008/01/12 05:54:43
I think I might have reached the point where I don't need to see the
file anf line number location of every error. Woohoo.
Affected files ...
.. //depot/projects/dtrace/src/contrib/opensolaris/cmd/dtrace/dtrace.c#13 edit
Differences ...
==== //depot/projects/dtrace/src/contrib/opensolaris/cmd/dtrace/dtrace.c#13 (text) ====
@@ -202,7 +202,7 @@
static void
dfatal(const char *fmt, ...)
{
-#if !defined(sun)
+#if !defined(sun) && defined(NEED_ERRLOC)
char *p_errfile = NULL;
int errline = 0;
#endif
@@ -223,7 +223,7 @@
(void) fprintf(stderr, "%s\n",
dtrace_errmsg(g_dtp, dtrace_errno(g_dtp)));
}
-#if !defined(sun)
+#if !defined(sun) && defined(NEED_ERRLOC)
dt_get_errloc(g_dtp, &p_errfile, &errline);
if (p_errfile != NULL)
printf("File '%s', line %d\n", p_errfile, errline);
More information about the p4-projects
mailing list