Skip to content

Commit

Permalink
Case the RPM value to make compiler happy on ARM
Browse files Browse the repository at this point in the history
Signed-off-by: Allan Jude <allan@klarasystems.com>
  • Loading branch information
allanjude committed Jun 8, 2021
1 parent e84ec25 commit 3a5fae5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/libzfs/libzfs_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -5186,9 +5186,11 @@ zpool_get_vdev_prop_value(nvlist_t *nvprop, vdev_prop_t prop, char *prop_name,
else if (intval == 1) /* VDEV_RATE_NON_ROTATING */
(void) snprintf(buf, len, "Non-Rotating");
else
(void) snprintf(buf, len, "%zu RPM", intval);
(void) snprintf(buf, len, "%llu RPM",
(u_longlong_t)intval);
default:
(void) snprintf(buf, len, "%zu", intval);
(void) snprintf(buf, len, "%llu",
(u_longlong_t)intval);
}
break;

Expand Down

0 comments on commit 3a5fae5

Please sign in to comment.