libceph: osdmap.h: Add missing format newlines
authorJoe Perches <joe@perches.com>
Mon, 23 Mar 2015 20:35:03 +0000 (13:35 -0700)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Apr 2015 15:55:35 +0000 (18:55 +0300)
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>
include/linux/ceph/osdmap.h

index 561ea896c65701ec009fd4e860ed824a36e080de..e55c08bc3a960d0b5f0664e5c46ac9cd969ec97d 100644 (file)
@@ -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;
        }