Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

apparmor: fix label and profile debug macros

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

Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>

+3 -1
+3 -1
security/apparmor/include/lib.h
··· 47 47 #define AA_DEBUG_LABEL(LAB, X, fmt, args...) \ 48 48 do { \ 49 49 if ((LAB)->flags & FLAG_DEBUG1) \ 50 - AA_DEBUG(X, fmt, args); \ 50 + AA_DEBUG(X, fmt, ##args); \ 51 51 } while (0) 52 + 53 + #define AA_DEBUG_PROFILE(PROF, X, fmt...) AA_DEBUG_LABEL(&(PROF)->label, X, ##fmt) 52 54 53 55 #define AA_WARN(X) WARN((X), "APPARMOR WARN %s: %s\n", __func__, #X) 54 56