Commit 1301b956 authored by John Johansen's avatar John Johansen
Browse files

apparmor: fix label and profile debug macros



The label and profile debug macros were not correctly pasting their
var args.

Reviewed-by: default avatarGeorgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 4a134723
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -47,9 +47,11 @@ extern struct aa_dfa *stacksplitdfa;
#define AA_DEBUG_LABEL(LAB, X, fmt, args...)				\
do {									\
	if ((LAB)->flags & FLAG_DEBUG1)					\
		AA_DEBUG(X, fmt, args);					\
		AA_DEBUG(X, fmt, ##args);				\
} while (0)

#define AA_DEBUG_PROFILE(PROF, X, fmt...) AA_DEBUG_LABEL(&(PROF)->label, X, ##fmt)

#define AA_WARN(X) WARN((X), "APPARMOR WARN %s: %s\n", __func__, #X)

#define AA_BUG(X, args...)						    \