svn rev #22064: tools/gssmonger/trunk/gssmaggot/

raeburn@MIT.EDU raeburn at MIT.EDU
Mon Mar 2 16:07:32 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22064
Commit By: raeburn
Log Message:
Only print out base of source filename.


Changed Files:
U   tools/gssmonger/trunk/gssmaggot/logging.c
Modified: tools/gssmonger/trunk/gssmaggot/logging.c
===================================================================
--- tools/gssmonger/trunk/gssmaggot/logging.c	2009-03-02 21:07:00 UTC (rev 22063)
+++ tools/gssmonger/trunk/gssmaggot/logging.c	2009-03-02 21:07:32 UTC (rev 22064)
@@ -212,10 +212,14 @@
     CHAR    buffer[ 100 ];
 #endif
 
-    printf( "%s:%ld: ",
-            file, 
-            line );
-    
+    {
+	const char *basename = strrchr(file, '/');
+	if (basename)
+	    basename++;
+	else
+	    basename = file;
+	printf( "%s:%ld: ", basename, line );
+    }
 
     StringLength = vfprintf( stdout,
                              fmt,




More information about the cvs-krb5 mailing list