All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib/dynamic_debug: make better dynamic log output
@ 2019-12-09  9:44 Huang Shijie
  2019-12-10  6:38 ` [PATCH V2] " Huang Shijie
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Huang Shijie @ 2019-12-09  9:44 UTC (permalink / raw)
  To: jbaron; +Cc: linux-kernel, 1537577747, Huang Shijie

The driver strings and device name is not changed for the driver's dynamic
log output. But the dynamic_emit_prefix() which contains the function names
may changed when the function names are changed.

So the patch makes the better dynamic log output.

Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai>
---
 lib/dynamic_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index c60409138e13..8cfcdd5bd1ff 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -590,8 +590,8 @@ void __dynamic_dev_dbg(struct _ddebug *descriptor,
 		char buf[PREFIX_SIZE];
 
 		dev_printk_emit(LOGLEVEL_DEBUG, dev, "%s%s %s: %pV",
-				dynamic_emit_prefix(descriptor, buf),
 				dev_driver_string(dev), dev_name(dev),
+				dynamic_emit_prefix(descriptor, buf),
 				&vaf);
 	}
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-12-20  6:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-09  9:44 [PATCH] lib/dynamic_debug: make better dynamic log output Huang Shijie
2019-12-10  6:38 ` [PATCH V2] " Huang Shijie
2019-12-10 18:16   ` Jason Baron
2019-12-11  1:50     ` Huang Shijie
2019-12-11  3:17 ` [PATCH v3] " Huang Shijie
2019-12-12  6:35 ` [PATCH v4] " Huang Shijie
2019-12-19  7:47 ` [PATCH v5] " Huang Shijie
2019-12-19 22:10   ` Jason Baron
2019-12-20  5:45     ` Huang Shijie
2019-12-20  6:02 ` [PATCH v6] " Huang Shijie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.