p4-projects@freebsd.org
[Top] [All Lists]

PERFORCE change 133105 for review

Subject: PERFORCE change 133105 for review
From: John Birrell
Date: Sat, 12 Jan 2008 05:55:08 GMT
http://perforce.freebsd.org/chv.cgi?CH=133105

Change 133105 by jb@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);
_______________________________________________
p4-projects@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "p4-projects-unsubscribe@xxxxxxxxxxx"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 133105 for review, John Birrell <=