diff --git a/lib/device/device_id.c b/lib/device/device_id.c index 7d67a1cb7..200d39432 100644 --- a/lib/device/device_id.c +++ b/lib/device/device_id.c @@ -740,7 +740,7 @@ static int _dev_read_sys_serial(struct cmd_context *cmd, struct device *dev, int ret; /* /dev/vda to vda */ - base = basename(devname); + base = dm_basename(devname); /* vda1 to vda */ for (i = 0; i < strlen(base); i++) {