Skip to content

Commit 6ee776b

Browse files
committed
btrfs-progs: convert missing device printf() to a warning()
To support JSON formatted output for `filesystem show` stdout can't contain warnings, the warning macro prints to stderr.
1 parent 04fffa4 commit 6ee776b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel-shared/volumes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,7 @@ static int read_one_chunk(struct btrfs_fs_info *fs_info, struct btrfs_key *key,
24342434
NULL);
24352435
if (!map->stripes[i].dev) {
24362436
map->stripes[i].dev = fill_missing_device(devid, uuid);
2437-
printf("warning, device %llu is missing\n",
2437+
warning("warning, device %llu is missing\n",
24382438
(unsigned long long)devid);
24392439
list_add(&map->stripes[i].dev->dev_list,
24402440
&fs_info->fs_devices->devices);

0 commit comments

Comments
 (0)