* [PATCH] audit: fix auditsc printk format warning
@ 2008-02-11 18:05 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2008-02-11 18:05 UTC (permalink / raw)
To: lkml; +Cc: dwmw2, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix printk format warning:
linux-2.6.25-rc1/kernel/auditsc.c:1077: warning: format '%ld' expects type 'long int', but argument 4 has type 'size_t'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
kernel/auditsc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.25-rc1.orig/kernel/auditsc.c
+++ linux-2.6.25-rc1/kernel/auditsc.c
@@ -1073,7 +1073,7 @@ static int audit_log_single_execve_arg(s
* so we can be sure nothing was lost.
*/
if ((i == 0) && (too_long))
- audit_log_format(*ab, "a%d_len=%ld ", arg_num,
+ audit_log_format(*ab, "a%d_len=%zd ", arg_num,
has_cntl ? 2*len : len);
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-11 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-11 18:05 [PATCH] audit: fix auditsc printk format warning Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®