diff options
author | Steve Dickson <steved@redhat.com> | 2018-03-10 12:25:08 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2018-03-10 12:25:08 -0500 |
commit | 62f27542e306df3c43212965ab12d23fa545baa3 (patch) | |
tree | aca04d7e41798a6c7bec1bd28a7606a488eab3f3 | |
parent | cca07d2bd5888eceeac9ab2bfe7758b2393e0f5a (diff) | |
download | nfs-utils-2-3-2-rc1.tar.gz |
Removed -Werror=format=2 warningsnfs-utils-2-3-2-rc1
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/blkmapd/dm-device.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/utils/blkmapd/dm-device.c b/utils/blkmapd/dm-device.c index f2d4de4..ee20d54 100644 --- a/utils/blkmapd/dm-device.c +++ b/utils/blkmapd/dm-device.c @@ -400,15 +400,17 @@ uint64_t dm_device_create(struct bl_volume *vols, int num_vols) } dev = node->bv_vols[0]->param.bv_dev; tmp = table->params; - BL_LOG_INFO("%s: major %lu minor %lu", __func__, - MAJOR(dev), MINOR(dev)); + BL_LOG_INFO("%s: major %llu minor %llu", __func__, + (long long unsigned)MAJOR(dev), + (long long unsigned)MINOR(dev)); if (!dm_format_dev(tmp, DM_PARAMS_LEN, MAJOR(dev), MINOR(dev))) { free(table); goto out; } tmp += strlen(tmp); - sprintf(tmp, " %lu", node->param.bv_offset); + sprintf(tmp, " %llu", + (long long unsigned)node->param.bv_offset); add_to_bl_dm_table(&bl_table_head, table); break; case BLOCK_VOLUME_STRIPE: @@ -462,7 +464,8 @@ uint64_t dm_device_create(struct bl_volume *vols, int num_vols) tmp = table->params; dev = node->bv_vols[i]->param.bv_dev; BL_LOG_INFO("%s: major %lu minor %lu", __func__, - MAJOR(dev), MINOR(dev)); + (long unsigned int)MAJOR(dev), + (long unsigned int)MINOR(dev)); if (!dm_format_dev(tmp, DM_PARAMS_LEN, MAJOR(dev), MINOR(dev))) { free(table); |