From: jacob Date: Fri, 7 Jan 2005 19:42:55 +0000 (+0000) Subject: b=5514 X-Git-Tag: 1.3.4~208 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=fef1ec3e0563cc9e6b4a56346d604356b03d7489;p=fs%2Flustre-release.git b=5514 r=adilger Remove full paths of files in debug logs. --- diff --git a/lnet/libcfs/tracefile.c b/lnet/libcfs/tracefile.c index f0c06e5..6018a3d 100644 --- a/lnet/libcfs/tracefile.c +++ b/lnet/libcfs/tracefile.c @@ -207,6 +207,9 @@ void portals_debug_msg(int subsys, int mask, char *file, const char *fn, unsigned long flags; struct timeval tv; + if (strchr(file, '/')) + file = strrchr(file, '/') + 1; + if (*(format + strlen(format) - 1) != '\n') printk(KERN_INFO "format at %s:%d:%s doesn't end in newline\n", file, line, fn);