[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen/trace: Turn the stub debugtrace_{dump, printk}() macros into functions
commit f59174d7e5fb8bb530246003d373345b5b433ea0 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Sat Jul 2 11:43:02 2016 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Sep 2 11:19:40 2016 +0100 xen/trace: Turn the stub debugtrace_{dump,printk}() macros into functions This allows printf format checking to be performed, and for debugtrace_printk() to evaluate its arguments, even if debugtrace is disabled at compile time. No intended change. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/include/xen/lib.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h index d04864e..e518adc 100644 --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -68,8 +68,10 @@ extern void debugtrace_dump(void); extern void debugtrace_printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); #else -#define debugtrace_dump() ((void)0) -#define debugtrace_printk(_f, ...) ((void)0) +static inline void debugtrace_dump(void) {} +static inline void + __attribute__ ((format (printf, 1, 2))) +debugtrace_printk(const char *fmt, ...) {} #endif /* Allows us to use '%p' as general-purpose machine-word format char. */ -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |