depot/third_party/nixpkgs/pkgs/os-specific/linux/prl-tools/prl-tools-6.0.patch
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

13 lines
631 B
Diff

diff --git a/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c b/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c
index baa8a19..6788791 100644
--- a/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c
+++ b/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c
@@ -306,7 +306,7 @@ int seq_show(struct seq_file *file, void *data)
char buf[BDEVNAME_SIZE];
fsb = list_entry((struct list_head*)data, struct frozen_sb, list);
- bdevname(fsb->sb->s_bdev, buf);
+ snprintf(buf, sizeof(buf), "%pg", fsb->sb->s_bdev);
seq_printf(file, "%s\n", buf);
return 0;
}