summaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/format.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2023-11-02 18:40:32 +0000
committerOle Tr�an <otroan@employees.org>2023-11-03 09:26:47 +0000
commit6bd6c80f27c708f72aef1d850e48deaef832477e (patch)
treeb1aa3c39f4b25e83d28f213e719d3963242fdb8d /src/vnet/dev/format.c
parent8800f732f868bf54da8adba05e38bd2477895ca5 (diff)
dev: strip debig log function name prefix during compilation
Type: improvement Change-Id: I9b9bb37a0895366b412f042b0e2da5bbdd477325 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/dev/format.c')
-rw-r--r--src/vnet/dev/format.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/vnet/dev/format.c b/src/vnet/dev/format.c
index 4e1ece66d31..b8b7dbdcb10 100644
--- a/src/vnet/dev/format.c
+++ b/src/vnet/dev/format.c
@@ -394,11 +394,7 @@ format_vnet_dev_log (u8 *s, va_list *args)
if (dev && func)
vec_add1 (s, ' ');
if (func)
- {
- if (strncmp (func, "vnet_dev_", 9) == 0)
- func += 9;
- s = format (s, "%s", func);
- }
+ s = format (s, "%s", func);
vec_add1 (s, ':');
vec_add1 (s, ' ');
return s;