mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
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>
This commit is contained in:
parent
4a134723f9
commit
1301b95619
1 changed files with 3 additions and 1 deletions
|
|
@ -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...) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue