mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-12 02:30:12 +08:00
Match-id-9022dc0b85035b9e027ab5a749409c1a758bcbcc
This commit is contained in:
@@ -186,7 +186,7 @@ static int ParseDeviceIDs(unsigned int *idList, size_t *idListSize, char *device
|
||||
errno = 0;
|
||||
idList[idx] = strtoul((const char *)token, NULL, DECIMAL);
|
||||
if (errno != 0) {
|
||||
LOG_ERROR("error: failed to convert device id (%s) from cmd args, caused by: %s.", token, strerror(errno));
|
||||
LOG_ERROR("error: failed to convert device id (%s) from cmd args", token);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@@ -239,7 +239,7 @@ int DoDirectoryMounting(const char *rootfs, const struct MountList *list)
|
||||
for (unsigned int i = 0; i < list->count; i++) {
|
||||
ret = MountDir(rootfs, (const char *)&list->list[i][0]);
|
||||
if (ret < 0) {
|
||||
LOG_ERROR("error: failed to do directory mounting for %s.", (const char *)&list->list[i][0]);
|
||||
LOG_ERROR("error: failed to do directory mounting ");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -254,7 +254,7 @@ int DoFileMounting(const char *rootfs, const struct MountList *list)
|
||||
for (unsigned int i = 0; i < list->count; i++) {
|
||||
ret = MountFile(rootfs, (const char *)&list->list[i][0]);
|
||||
if (ret < 0) {
|
||||
LOG_ERROR("error: failed to do file mounting for %s.", (const char *)&list->list[i][0]);
|
||||
LOG_ERROR("error: failed to do file mounting ");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user