aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dev/log.h
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/log.h
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/log.h')
-rw-r--r--src/vnet/dev/log.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/dev/log.h b/src/vnet/dev/log.h
index 432e7b88a21..5ca7b6620e9 100644
--- a/src/vnet/dev/log.h
+++ b/src/vnet/dev/log.h
@@ -5,11 +5,10 @@
#ifndef _VNET_DEV_LOG_H_
#define _VNET_DEV_LOG_H_
-format_function_t format_vnet_dev_log;
-
#define log_debug(dev, f, ...) \
vlib_log (VLIB_LOG_LEVEL_DEBUG, dev_log.class, "%U" f, format_vnet_dev_log, \
- dev, __func__, ##__VA_ARGS__)
+ dev, clib_string_skip_prefix (__func__, "vnet_dev_"), \
+ ##__VA_ARGS__)
#define log_notice(dev, f, ...) \
vlib_log (VLIB_LOG_LEVEL_NOTICE, dev_log.class, "%U" f, \
format_vnet_dev_log, dev, 0, ##__VA_ARGS__)