mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The function show_devices_argv() iterates over all remaining arguments. Each argument may specify a single device or a list of sub-devices. Use a separate index for the inner sub-device loop. This fixes a bug, that not all or wrong arguments are processed. Also terminate the outer arguments loop based on the number of remaining arguments. Signed-off-by: Holger Dengler <dengler@linux.ibm.com> Reviewed-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>