From fef1ec3e0563cc9e6b4a56346d604356b03d7489 Mon Sep 17 00:00:00 2001 From: jacob Date: Fri, 7 Jan 2005 19:42:55 +0000 Subject: [PATCH] b=5514 r=adilger Remove full paths of files in debug logs. --- lnet/libcfs/tracefile.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 1.8.3.1