summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-28 17:47:51 +0000
committerphk <phk@FreeBSD.org>2002-09-28 17:47:51 +0000
commit9a53934a7f7dc85c56d6cc4f39d4b15c7fe099d7 (patch)
tree56c912e2066d77948623439796d25c513beaa34d /sys/dev
parentc5be3924c32bb1aacfc27b884db5ef65f00fa7b8 (diff)
downloadFreeBSD-src-9a53934a7f7dc85c56d6cc4f39d4b15c7fe099d7.zip
FreeBSD-src-9a53934a7f7dc85c56d6cc4f39d4b15c7fe099d7.tar.gz
Don't use GCC shorthand for ?: unless it really matters.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 8b19b5c..76bae52 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -980,8 +980,9 @@ pci_probe_nomatch(device_t dev, device_t child)
}
}
device_printf(dev, "<%s%s%s>",
- cp ? : "", ((cp != NULL) && (scp != NULL)) ? ", " : "",
- scp ? : "");
+ cp ? cp : "",
+ ((cp != NULL) && (scp != NULL)) ? ", " : "",
+ scp ? scp : "");
}
printf(" at device %d.%d (no driver attached)\n",
pci_get_slot(child), pci_get_function(child));
OpenPOWER on IntegriCloud