mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 15:58:56 +00:00
Userland: Fix displaying mount source
The key is now called "source" instead of "device".
This commit is contained in:
parent
2d412c5ad1
commit
67cbc015d5
Notes:
sideshowbarker
2024-07-19 06:01:19 +09:00
Author: https://github.com/bugaevc
Commit: 67cbc015d5
Pull-request: https://github.com/SerenityOS/serenity/pull/2430
Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue