From 84ea2e037490a9ad6c0a192cf237f88fd83cdd88 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 9 Dec 2017 05:53:18 +0100 Subject: logging vty: describe 'logging set-log-mask' command, add OSMO_STRINGIFY_VAL() Change-Id: I73ac5873ede858da44e1486d8a5c81da1ed5b19f --- include/osmocom/core/utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h index 0a3805df..5c660cd8 100644 --- a/include/osmocom/core/utils.h +++ b/include/osmocom/core/utils.h @@ -19,6 +19,8 @@ * Note: if nested within another preprocessor macro, this will * stringify the value of x instead of its name. */ #define OSMO_STRINGIFY(x) #x +/*! Stringify the value of a macro x, e.g. a port number. */ +#define OSMO_STRINGIFY_VAL(x) OSMO_STRINGIFY(x) /*! Make a value_string entry from an enum value name */ #define OSMO_VALUE_STRING(x) { x, #x } /*! Number of bytes necessary to store given BITS */ -- cgit v1.2.3