[v2,2/3] dyndbg: increase PREFIX_SIZE to 128

Message ID 20230709-dyndbg-filename-v2-2-fd83beef0925@weissschuh.net
State New
Headers
Series dyndbg: add source file name to prefix |

Commit Message

Thomas Weißschuh July 9, 2023, 9:17 p.m. UTC
  A follow-up patch will add the possibility to print the filename as part
of the prefix.
Increase the maximum prefix size to accommodate this.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 lib/dynamic_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Luis Chamberlain July 10, 2023, 7:32 p.m. UTC | #1
On Sun, Jul 09, 2023 at 11:17:59PM +0200, Thomas Weißschuh wrote:
> A follow-up patch will add the possibility to print the filename as part
> of the prefix.
> Increase the maximum prefix size to accommodate this.
> 
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>

  Luis
  

Patch

diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 71b22d206a1b..166229dfe171 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -808,7 +808,7 @@  const struct kernel_param_ops param_ops_dyndbg_classes = {
 };
 EXPORT_SYMBOL(param_ops_dyndbg_classes);
 
-#define PREFIX_SIZE 64
+#define PREFIX_SIZE 128
 
 static int remaining(int wrote)
 {