Skip to contentSkip to conversation

dynamic_debug: add space unconditionally at end of dynamic-prefix

PATCH New Jim Cromie 1 participant 2 messages Aug 3, 2011

Subsystems (2)
lore
Share & tools
lore

Jim Cromie

author maintainer
#0 lore raw

PATCH 1/1 dynamic_debug: add space unconditionally at end of dynamic-prefix

dynamic_emit_prefix() currently adds a space after line-number, but not otherwize. For readability, add space unconditionally.

author maintainer
#1 lore raw

PATCH 44/48 dynamic_debug: add space unconditionally at end of dynamic-prefix

dynamic_emit_prefix() currently adds a space after line-number, but not otherwize. For readability, add space unconditionally.

---
 lib/dynamic_debug.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
lib/dynamic_debug.c +2 -1
index 321c1b70..d7494a0 100644
@@ -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;
 }
Signature · 1 line
1.7.4.1