<div dir="ltr"><br><div class="gmail_extra"><span style="color:rgb(80,0,80)"><snip></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">
<br>
</div></div>Ugh.  That's not so easy to read...  Slightly longer, how about this?<br>
<br>
diff --git a/kernel/audit.c b/kernel/audit.c<br>
index 8378c5e..3f569d1 100644<br>
--- a/kernel/audit.c<br>
+++ b/kernel/audit.c<br>
@@ -824,11 +824,13 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)<br>
                                        break;<br>
                        }<br>
                        audit_log_common_recv_msg(&ab, msg_type);<br>
-                       if (msg_type != AUDIT_USER_TTY)<br>
-                               audit_log_format(ab,<br>
-                                                " msg='%.AUDIT_MESSAGE_TEXT_MAXs'",<br>
-                                                (char *)data);<br>
-                       else {<br>
+                       if (msg_type != AUDIT_USER_TTY) {<br>
+                               char fmt[64];<br>
+                               strcat(fmt, " msg='%.");<br>
+                               strcat(fmt, "AUDIT_MESSAGE_TEXT_MAX");<br>
+                               strcat(fmt, "s'");<br>
+                               audit_log_format(ab, fmt, (char *)data);<br>
+                       } else {<br>
                                int size;<br>
<br>
                                audit_log_format(ab, " data=");<br></blockquote><div><br></div><div>I am ok with this. In fact I was going to do this the first time, but I thought their would be some explicit reason to avoid the additional</div>
<div>run time overhead as the concat could be made at compile time.</div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)"><snip></span><br></div></div>
</div></div>