diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-03 00:28:03 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-03 00:42:31 +0900 |
commit | 4fe46c349d98aee5d880f65ebbf4e9e879138346 (patch) | |
tree | b1adc6364163d3a10bebccffb868a4c449924d91 /src/sysupdate/sysupdate-resource.c | |
parent | 81e327c42c26b0a716fc75718e8d5fce8f6893e2 (diff) | |
download | systemd-4fe46c349d98aee5d880f65ebbf4e9e879138346.tar.gz |
sd-device: rename devpath_from_devnum() -> devname_from_devnum()
In sd-device, `devpath` is a kind of syspath without '/sys' prefix, e.g.
/devices/pci0000:00/0000:00:1c.4/0000:3c:00.0/nvme/nvme0/nvme0n1,
and `devname` is a path to the device node, e.g. /dev/nvme0n1.
Let's use the consistent name for the helper function.
Diffstat (limited to 'src/sysupdate/sysupdate-resource.c')
-rw-r--r-- | src/sysupdate/sysupdate-resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysupdate/sysupdate-resource.c b/src/sysupdate/sysupdate-resource.c index 2a2fb29c20..8104e9c82e 100644 --- a/src/sysupdate/sysupdate-resource.c +++ b/src/sysupdate/sysupdate-resource.c @@ -608,7 +608,7 @@ int resource_resolve_path( return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "File system is not placed on a partition block device, cannot determine whole block device backing root file system."); - r = devpath_from_devnum(S_IFBLK, d, &p); + r = devname_from_devnum(S_IFBLK, d, &p); if (r < 0) return r; |