Skip to contentSkip to conversation

Reiser4: fix dmesg output

PATCH New Laurent Riffard 1 participant 3 messages Mar 31, 2006

lore
Share & tools
lore
#0 lore raw

cover Reiser4: fix dmesg output

Here are 2 trivial patches to fix some glitches in kernel log.

Please apply.
--
laurent

#1 lore raw

PATCH 1/2 Reiser4: Fix double insertion of loglevel in printk calls

DCALL used to insert loglevel twice in the string sent to printk.

 fs/reiser4/debug.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/reiser4/debug.h +2 -2
Index: linux-2.6-mm/fs/reiser4/debug.h
===================================================================
@@ -16,8 +16,8 @@
 ({									\
 /*	reiser4_print_prefix(lev, reperr, label,*/			\
 /*	__FUNCTION__, __FILE__, __LINE__);*/				\
-	fun(lev "%sreiser4[%.16s(%i)]: %s (%s:%i)[%s]:\n" format "\n" ,	\
-	    lev, current->comm, current->pid, __FUNCTION__,		\
+	fun(lev "reiser4[%.16s(%i)]: %s (%s:%i)[%s]:\n" format "\n" ,	\
+	    current->comm, current->pid, __FUNCTION__,			\
 	    __FILE__, __LINE__, label, ## __VA_ARGS__);			\
 })
 

--

#2 lore raw

PATCH 2/2 Reiser4: Remove printing of useless blank line in dmesg

In reply to Laurent Riffard

This patch removes printing of a useless blank line in dmesg.

 fs/reiser4/wander.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
fs/reiser4/wander.c +1 -1
Index: linux-2.6-mm/fs/reiser4/wander.c
===================================================================
@@ -231,7 +231,7 @@ static inline int reiser4_use_write_barr
 static void disable_write_barrier(struct super_block * s)
 {
 	notice("zam-1055", "%s does not support write barriers,"
-	       " using synchronous write instead.\n", s->s_id);
+	       " using synchronous write instead.", s->s_id);
 	set_bit((int)REISER4_NO_WRITE_BARRIER, &get_super_private(s)->fs_flags);
 }
 

--