diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-01-16 13:29:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-01-16 13:29:19 +0000 |
commit | 2ff8d37f7c51c03e37638c37e030e060d2c34669 (patch) | |
tree | c72f5c3597f86bd98cde9765692820dc4af7b89e /perl-install/detect_devices.pm | |
parent | e78fb4780e2059e155ec011dbefe71dd665cf7be (diff) | |
download | drakx-backup-do-not-use-2ff8d37f7c51c03e37638c37e030e060d2c34669.tar drakx-backup-do-not-use-2ff8d37f7c51c03e37638c37e030e060d2c34669.tar.gz drakx-backup-do-not-use-2ff8d37f7c51c03e37638c37e030e060d2c34669.tar.bz2 drakx-backup-do-not-use-2ff8d37f7c51c03e37638c37e030e060d2c34669.tar.xz drakx-backup-do-not-use-2ff8d37f7c51c03e37638c37e030e060d2c34669.zip |
replace occurences of "$foo ? $foo : $bar" with "$foo || $bar"
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index c891bca71..1aa420d79 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -510,7 +510,7 @@ sub matching_desc { sub stringlist { map { sprintf("%-16s: %s%s%s", - $_->{driver} ? $_->{driver} : 'unknown', + $_->{driver} || 'unknown', $_->{description} eq '(null)' ? sprintf("Vendor=0x%04x Device=0x%04x", $_->{vendor}, $_->{id}) : $_->{description}, $_->{media_type} ? sprintf(" [%s]", $_->{media_type}) : '', $_->{subid} && $_->{subid} != 0xffff ? sprintf(" SubVendor=0x%04x SubDevice=0x%04x", $_->{subvendor}, $_->{subid}) : '', |