* [PATCH] dynamic_debug: add space unconditionally at end of dynamic-prefix
@ 2011-08-03 19:58 Jim Cromie
2011-08-03 19:58 ` [PATCH 44/48] " Jim Cromie
0 siblings, 1 reply; 2+ messages in thread
From: Jim Cromie @ 2011-08-03 19:58 UTC (permalink / raw)
To: jbaron; +Cc: joe, linux-kernel
dynamic_emit_prefix() currently adds a space after line-number,
but not otherwize. For readability, add space unconditionally.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 44/48] dynamic_debug: add space unconditionally at end of dynamic-prefix
2011-08-03 19:58 [PATCH] dynamic_debug: add space unconditionally at end of dynamic-prefix Jim Cromie
@ 2011-08-03 19:58 ` Jim Cromie
0 siblings, 0 replies; 2+ messages in thread
From: Jim Cromie @ 2011-08-03 19:58 UTC (permalink / raw)
To: jbaron; +Cc: joe, linux-kernel, Jim Cromie
dynamic_emit_prefix() currently adds a space after line-number,
but not otherwize. For readability, add space unconditionally.
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
lib/dynamic_debug.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 321c1b70..d7494a0 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -676,7 +676,8 @@ static char *dynamic_emit_prefix(const struct _ddebug *desc, char *buf)
if (desc->flags & _DPRINTK_FLAGS_INCL_FUNCNAME)
pos += snprintf(buf + pos, LEFT(pos), "%s:", desc->function);
if (desc->flags & _DPRINTK_FLAGS_INCL_LINENO)
- pos += snprintf(buf + pos, LEFT(pos), "%d ", desc->lineno);
+ pos += snprintf(buf + pos, LEFT(pos), "%d:", desc->lineno);
+ pos += snprintf(buf + pos, LEFT(pos), " ");
return buf;
}
--
1.7.4.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-03 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-03 19:58 [PATCH] dynamic_debug: add space unconditionally at end of dynamic-prefix Jim Cromie
2011-08-03 19:58 ` [PATCH 44/48] " Jim Cromie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®