mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
lszcrypt: fix parameter handling for device list
lszcrypt allows the explicit definition of a list of devices. Continue the parameter processing if multiple devices are specified. Signed-off-by: Holger Dengler <dengler@linux.ibm.com> Reviewed-By: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
7f09f0e4ad
commit
538264a8cd
@@ -872,7 +872,7 @@ static void show_devices_argv(char *argv[])
|
||||
show_device(rec, card);
|
||||
free(card);
|
||||
}
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
if (sscanf(argv[i]+1, "%x", &dom) == 1) {
|
||||
/* list specific domains of all adapters */
|
||||
@@ -897,7 +897,7 @@ static void show_devices_argv(char *argv[])
|
||||
}
|
||||
free(path);
|
||||
}
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
printf("Invalid adpater id!\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user