mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
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: 102ada7ca3 ("apparmor: fix fmt string type error in process_strs_entry")
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
9058798652
commit
1b51bd7615
1 changed files with 1 additions and 1 deletions
|
|
@ -546,7 +546,7 @@ static int unpack_strs_table(struct aa_ext *e, const char *name, bool multi,
|
|||
if (c <= 0) {
|
||||
AA_DEBUG(DEBUG_UNPACK, "process_strs %d i %d pos %ld",
|
||||
c, i,
|
||||
(unsigned_long) e->pos - saved_pos);
|
||||
(unsigned long)(e->pos - saved_pos));
|
||||
goto fail;
|
||||
}
|
||||
if (!multi && c > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue