From: Olaf Dietsche <olaf+list.linux-kernel@olafdietsche.de>
To: Andrew Morton <akpm@osdl.org>
Cc: Rik Faith <faith@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] change audit_log_format() -> printk() (was: 2.6.5-mm4)
Date: Mon, 12 Apr 2004 14:24:48 +0200 [thread overview]
Message-ID: <87isg5wfhr.fsf@goat.bogus.local> (raw)
In-Reply-To: 20040410200551.31866667.akpm@osdl.org
Andrew Morton <akpm@osdl.org> writes:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.5/2.6.5-mm4/
>
> lightweight-auditing-framework.patch
> Light-weight Auditing Framework
> Light-weight Auditing Framework update
> lightweight-auditing-framework warning fixes
> Light-weight Auditing Framework receive filter fixes
> lightweight-auditing-framework-receive-filter-fixes compile fix
I've seen several printk()'s substituted with audit_log_format().
Maybe this small patch helps those not using the audit framework.
I have not tested this patch.
Regards, Olaf.
diff -urN a/include/linux/audit.h b/include/linux/audit.h
--- a/include/linux/audit.h Mon Apr 12 11:58:33 2004
+++ b/include/linux/audit.h Mon Apr 12 12:01:43 2004
@@ -197,8 +197,8 @@
#define audit_log(t,f,...) do { ; } while (0)
#define audit_log_start(t) ({ NULL; })
#define audit_log_vformat(b,f,a) do { ; } while (0)
-#define audit_log_format(b,f,...) do { ; } while (0)
-#define audit_log_end(b) do { ; } while (0)
+#define audit_log_format(b,f,args...) printk(f, args)
+#define audit_log_end(b) printk("\n")
#define audit_log_end_fast(b) do { ; } while (0)
#define audit_log_end_irq(b) do { ; } while (0)
#define audit_log_d_path(b,p,d,v) do { ; } while (0)
next prev parent reply other threads:[~2004-04-12 12:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-11 3:05 2.6.5-mm4 Andrew Morton
2004-04-12 6:46 ` 2.6.5-mm4 Paul P Komkoff Jr
2004-04-12 7:42 ` 2.6.5-mm4 Andrew Morton
2004-04-12 8:22 ` 2.6.5-mm4 Paul P Komkoff Jr
2004-04-12 8:28 ` 2.6.5-mm4 Andrew Morton
2004-04-12 9:10 ` 2.6.5-mm4 Paul P Komkoff Jr
2004-04-12 9:44 ` fix must_not_trace_exec() test (was: 2.6.5-mm4) Olaf Dietsche
2004-04-12 14:18 ` fix must_not_trace_exec() test Andy Lutomirski
2004-04-12 22:02 ` Chris Wright
2004-04-12 10:19 ` 2.6.5-mm4 (hci_usb module unloading oops) Martin Hermanowski
2004-04-12 22:03 ` Greg KH
2004-04-12 22:36 ` Marcel Holtmann
2004-04-12 22:42 ` Greg KH
2004-04-12 22:57 ` Marcel Holtmann
2004-04-19 20:29 ` Martin Hermanowski
2004-04-12 12:24 ` Olaf Dietsche [this message]
2004-04-12 17:06 ` 2.6.5-mm4 (compile stats) John Cherry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87isg5wfhr.fsf@goat.bogus.local \
--to=olaf+list.linux-kernel@olafdietsche.de \
--cc=akpm@osdl.org \
--cc=faith@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox