From fe1bb39aa52d9140981ba1e96f3c95ddf14006ce Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 14 Jun 2021 20:28:26 -0400 Subject: Fix format args to die() Also, add the format attribute so we get warnings about this. Signed-off-by: Kent Overstreet --- cmd_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd_format.c') diff --git a/cmd_format.c b/cmd_format.c index 3f96f5de..372ca8f8 100644 --- a/cmd_format.c +++ b/cmd_format.c @@ -258,7 +258,7 @@ int cmd_format(int argc, char *argv[]) darray_size(device_paths), bch2_opts_empty()); if (IS_ERR(c)) - die("error opening %s: %s", device_paths.item, + die("error opening %s: %s", device_paths.item[0], strerror(-PTR_ERR(c))); bch2_fs_stop(c); -- cgit v1.2.3