diff options
| author | Joe Perches <joe@perches.com> | 2015-03-23 16:35:03 -0400 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2015-04-20 11:55:35 -0400 |
| commit | 3ef650d3989677bd460497f9c3b0d58caaba0116 (patch) | |
| tree | de797f5671ebd8f1688718087f1c409147cdadf9 /include/linux/ceph | |
| parent | a149bb9a281c5c2904cf6fcdf9ed386340032ce3 (diff) | |
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.h | 5 |
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) | |||
| 175 | __u8 version; | 175 | __u8 version; |
| 176 | 176 | ||
| 177 | if (!ceph_has_room(p, end, 1 + 8 + 4 + 4)) { | 177 | if (!ceph_has_room(p, end, 1 + 8 + 4 + 4)) { |
| 178 | pr_warning("incomplete pg encoding"); | 178 | pr_warn("incomplete pg encoding\n"); |
| 179 | |||
| 180 | return -EINVAL; | 179 | return -EINVAL; |
| 181 | } | 180 | } |
| 182 | version = ceph_decode_8(p); | 181 | version = ceph_decode_8(p); |
| 183 | if (version > 1) { | 182 | if (version > 1) { |
| 184 | pr_warning("do not understand pg encoding %d > 1", | 183 | pr_warn("do not understand pg encoding %d > 1\n", |
| 185 | (int)version); | 184 | (int)version); |
| 186 | return -EINVAL; | 185 | return -EINVAL; |
| 187 | } | 186 | } |
