From 67cbc015d53df09b7ef4e70ee818e3f16e6c37dc Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Thu, 28 May 2020 17:29:17 +0300 Subject: [PATCH] Userland: Fix displaying mount source The key is now called "source" instead of "device". --- Userland/mount.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/mount.cpp b/Userland/mount.cpp index c3b3e8c0f7..9601807353 100644 --- a/Userland/mount.cpp +++ b/Userland/mount.cpp @@ -151,11 +151,11 @@ bool print_mounts() auto fs_object = value.as_object(); auto class_name = fs_object.get("class_name").to_string(); auto mount_point = fs_object.get("mount_point").to_string(); - auto device = fs_object.get("device").as_string_or(class_name); + auto source = fs_object.get("source").as_string_or("none"); auto readonly = fs_object.get("readonly").to_bool(); auto mount_flags = fs_object.get("mount_flags").to_int(); - printf("%s on %s type %s (", device.characters(), mount_point.characters(), class_name.characters()); + printf("%s on %s type %s (", source.characters(), mount_point.characters(), class_name.characters()); if (readonly) printf("ro");