diff options
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r-- | drivers/md/dm-snap.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 14bd1a1815b1..a5765f9fbe02 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c | |||
@@ -959,9 +959,9 @@ static int snapshot_status(struct dm_target *ti, status_type_t type, | |||
959 | snap->store.fraction_full(&snap->store, | 959 | snap->store.fraction_full(&snap->store, |
960 | &numerator, | 960 | &numerator, |
961 | &denominator); | 961 | &denominator); |
962 | snprintf(result, maxlen, | 962 | snprintf(result, maxlen, "%llu/%llu", |
963 | SECTOR_FORMAT "/" SECTOR_FORMAT, | 963 | (unsigned long long)numerator, |
964 | numerator, denominator); | 964 | (unsigned long long)denominator); |
965 | } | 965 | } |
966 | else | 966 | else |
967 | snprintf(result, maxlen, "Unknown"); | 967 | snprintf(result, maxlen, "Unknown"); |
@@ -974,9 +974,10 @@ static int snapshot_status(struct dm_target *ti, status_type_t type, | |||
974 | * to make private copies if the output is to | 974 | * to make private copies if the output is to |
975 | * make sense. | 975 | * make sense. |
976 | */ | 976 | */ |
977 | snprintf(result, maxlen, "%s %s %c " SECTOR_FORMAT, | 977 | snprintf(result, maxlen, "%s %s %c %llu", |
978 | snap->origin->name, snap->cow->name, | 978 | snap->origin->name, snap->cow->name, |
979 | snap->type, snap->chunk_size); | 979 | snap->type, |
980 | (unsigned long long)snap->chunk_size); | ||
980 | break; | 981 | break; |
981 | } | 982 | } |
982 | 983 | ||