Skip to content

Commit a795b77

Browse files
author
Lucas De Marchi
committed
UBUNTU: SAUCE: security/apparmor: Fix AA_DEBUG_PROFILE define
BugLink: https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2138131 Properly pass the variadic arguments so it can be called with or without them depending on the format. Signed-off-by: Lucas De Marchi <ldemarchi@nvidia.com>
1 parent 592cd39 commit a795b77

File tree

1 file changed

+2
-2
lines changed
  • security/apparmor/include

1 file changed

+2
-2
lines changed

security/apparmor/include/lib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ extern struct aa_dfa *stacksplitdfa;
5454
#define AA_DEBUG_LABEL(LAB, X, fmt, args...) \
5555
do { \
5656
if ((LAB)->flags & FLAG_DEBUG1) \
57-
AA_DEBUG(X, fmt); \
57+
AA_DEBUG(X, fmt, ## args); \
5858
} while (0)
59-
#define AA_DEBUG_PROFILE(PROF, X, fmt...) AA_DEBUG_LABEL(&(PROF)->label, X, fmt)
59+
#define AA_DEBUG_PROFILE(PROF, X, fmt, args...) AA_DEBUG_LABEL(&(PROF)->label, X, fmt, ## args)
6060

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

0 commit comments

Comments
 (0)