mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
fixup! cmd_show_super: Fix device model printing
This commit is contained in:
parent
248c7f35f3
commit
4050199158
@ -648,10 +648,12 @@ char *fd_to_dev_model(int fd)
|
||||
free(sysfs_path);
|
||||
return strdup("(unknown model)");
|
||||
got_model:
|
||||
char* model = read_file_str(AT_FDCWD, model_path);
|
||||
free(model_path);
|
||||
free(sysfs_path);
|
||||
return model;
|
||||
{
|
||||
char *model = read_file_str(AT_FDCWD, model_path);
|
||||
free(model_path);
|
||||
free(sysfs_path);
|
||||
return model;
|
||||
}
|
||||
} else {
|
||||
return strdup("(image file)");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user