summaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-23 13:35:03 -0700
committerIlya Dryomov <idryomov@gmail.com>2015-04-20 18:55:35 +0300
commit3ef650d3989677bd460497f9c3b0d58caaba0116 (patch)
treede797f5671ebd8f1688718087f1c409147cdadf9 /include/linux/ceph
parenta149bb9a281c5c2904cf6fcdf9ed386340032ce3 (diff)
downloadblackbird-op-linux-3ef650d3989677bd460497f9c3b0d58caaba0116.tar.gz
blackbird-op-linux-3ef650d3989677bd460497f9c3b0d58caaba0116.zip
libceph: osdmap.h: Add missing format newlines
To avoid possible interleaving, add missing '\n' to formats. Convert pr_warning to pr_warn while there. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/osdmap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h
index 561ea896c657..e55c08bc3a96 100644
--- a/include/linux/ceph/osdmap.h
+++ b/include/linux/ceph/osdmap.h
@@ -175,13 +175,12 @@ static inline int ceph_decode_pgid(void **p, void *end, struct ceph_pg *pgid)
__u8 version;
if (!ceph_has_room(p, end, 1 + 8 + 4 + 4)) {
- pr_warning("incomplete pg encoding");
-
+ pr_warn("incomplete pg encoding\n");
return -EINVAL;
}
version = ceph_decode_8(p);
if (version > 1) {
- pr_warning("do not understand pg encoding %d > 1",
+ pr_warn("do not understand pg encoding %d > 1\n",
(int)version);
return -EINVAL;
}
OpenPOWER on IntegriCloud