提交 436c405c 编写于 作者: E Eric Paris 提交者: Al Viro

Audit: end printk with newline

A couple of audit printk statements did not have a newline.
Signed-off-by: NEric Paris <eparis@redhat.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 064922a8
...@@ -1596,7 +1596,7 @@ static inline void handle_one(const struct inode *inode) ...@@ -1596,7 +1596,7 @@ static inline void handle_one(const struct inode *inode)
if (likely(put_tree_ref(context, chunk))) if (likely(put_tree_ref(context, chunk)))
return; return;
if (unlikely(!grow_tree_refs(context))) { if (unlikely(!grow_tree_refs(context))) {
printk(KERN_WARNING "out of memory, audit has lost a tree reference"); printk(KERN_WARNING "out of memory, audit has lost a tree reference\n");
audit_set_auditable(context); audit_set_auditable(context);
audit_put_chunk(chunk); audit_put_chunk(chunk);
unroll_tree_refs(context, p, count); unroll_tree_refs(context, p, count);
...@@ -1656,7 +1656,7 @@ static void handle_path(const struct dentry *dentry) ...@@ -1656,7 +1656,7 @@ static void handle_path(const struct dentry *dentry)
} }
/* too bad */ /* too bad */
printk(KERN_WARNING printk(KERN_WARNING
"out of memory, audit has lost a tree reference"); "out of memory, audit has lost a tree reference\n");
unroll_tree_refs(context, p, count); unroll_tree_refs(context, p, count);
audit_set_auditable(context); audit_set_auditable(context);
return; return;
...@@ -1752,13 +1752,13 @@ static int audit_inc_name_count(struct audit_context *context, ...@@ -1752,13 +1752,13 @@ static int audit_inc_name_count(struct audit_context *context,
if (context->name_count >= AUDIT_NAMES) { if (context->name_count >= AUDIT_NAMES) {
if (inode) if (inode)
printk(KERN_DEBUG "name_count maxed, losing inode data: " printk(KERN_DEBUG "name_count maxed, losing inode data: "
"dev=%02x:%02x, inode=%lu", "dev=%02x:%02x, inode=%lu\n",
MAJOR(inode->i_sb->s_dev), MAJOR(inode->i_sb->s_dev),
MINOR(inode->i_sb->s_dev), MINOR(inode->i_sb->s_dev),
inode->i_ino); inode->i_ino);
else else
printk(KERN_DEBUG "name_count maxed, losing inode data"); printk(KERN_DEBUG "name_count maxed, losing inode data\n");
return 1; return 1;
} }
context->name_count++; context->name_count++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册