Skip to content

Commit 1b51bd7

Browse files
committed
apparmor: fix cast in format string DEBUG statement
if debugging is enabled the DEBUG statement will fail do to a bad fat fingered cast. Fixes: 102ada7 ("apparmor: fix fmt string type error in process_strs_entry") Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 9058798 commit 1b51bd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/apparmor/policy_unpack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ static int unpack_strs_table(struct aa_ext *e, const char *name, bool multi,
546546
if (c <= 0) {
547547
AA_DEBUG(DEBUG_UNPACK, "process_strs %d i %d pos %ld",
548548
c, i,
549-
(unsigned_long) e->pos - saved_pos);
549+
(unsigned long)(e->pos - saved_pos));
550550
goto fail;
551551
}
552552
if (!multi && c > 1) {

0 commit comments

Comments
 (0)