From 2ff8d37f7c51c03e37638c37e030e060d2c34669 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 16 Jan 2003 13:29:19 +0000 Subject: replace occurences of "$foo ? $foo : $bar" with "$foo || $bar" --- perl-install/detect_devices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/detect_devices.pm') 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}) : '', -- cgit v1.2.1