Skip to content

Commit 436c405

Browse files
eparisAl Viro
authored andcommitted
Audit: end printk with newline
A couple of audit printk statements did not have a newline. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 064922a commit 436c405

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎kernel/auditsc.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ static inline void handle_one(const struct inode *inode)
15961596
if (likely(put_tree_ref(context, chunk)))
15971597
return;
15981598
if (unlikely(!grow_tree_refs(context))) {
1599-
printk(KERN_WARNING "out of memory, audit has lost a tree reference");
1599+
printk(KERN_WARNING "out of memory, audit has lost a tree reference\n");
16001600
audit_set_auditable(context);
16011601
audit_put_chunk(chunk);
16021602
unroll_tree_refs(context, p, count);
@@ -1656,7 +1656,7 @@ static void handle_path(const struct dentry *dentry)
16561656
}
16571657
/* too bad */
16581658
printk(KERN_WARNING
1659-
"out of memory, audit has lost a tree reference");
1659+
"out of memory, audit has lost a tree reference\n");
16601660
unroll_tree_refs(context, p, count);
16611661
audit_set_auditable(context);
16621662
return;
@@ -1752,13 +1752,13 @@ static int audit_inc_name_count(struct audit_context *context,
17521752
if (context->name_count >= AUDIT_NAMES) {
17531753
if (inode)
17541754
printk(KERN_DEBUG "name_count maxed, losing inode data: "
1755-
"dev=%02x:%02x, inode=%lu",
1755+
"dev=%02x:%02x, inode=%lu\n",
17561756
MAJOR(inode->i_sb->s_dev),
17571757
MINOR(inode->i_sb->s_dev),
17581758
inode->i_ino);
17591759

17601760
else
1761-
printk(KERN_DEBUG "name_count maxed, losing inode data");
1761+
printk(KERN_DEBUG "name_count maxed, losing inode data\n");
17621762
return 1;
17631763
}
17641764
context->name_count++;

0 commit comments

Comments
 (0)