From 62f27542e306df3c43212965ab12d23fa545baa3 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Sat, 10 Mar 2018 12:25:08 -0500 Subject: Removed -Werror=format=2 warnings Signed-off-by: Steve Dickson --- utils/blkmapd/dm-device.c | 11 +++++++---- 1 file 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); -- cgit v1.2.1