diff options
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/pci_ops.c | 5 | ||||
-rw-r--r-- | src/devices/smbus_ops.c | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/pci_ops.c b/src/devices/pci_ops.c index 08792f209d..ed984f89bd 100644 --- a/src/devices/pci_ops.c +++ b/src/devices/pci_ops.c @@ -30,7 +30,7 @@ static struct bus *get_pbus(device_t dev) struct bus *pbus; if (!dev) - printk_alert("get_pbus: dev is NULL!\n"); + die("get_pbus: dev is NULL!\n"); pbus = dev->bus; @@ -44,9 +44,8 @@ static struct bus *get_pbus(device_t dev) pbus = pbus->dev->bus; } if (!pbus || !pbus->dev || !pbus->dev->ops || !pbus->dev->ops->ops_pci_bus) { - printk_alert("%s Cannot find pci bus operations", dev_path(dev)); + printk_emerg("%s Cannot find pci bus operations\n", dev_path(dev)); die(""); - for(;;); } return pbus; } diff --git a/src/devices/smbus_ops.c b/src/devices/smbus_ops.c index c66dbe62bb..acf0b1f39d 100644 --- a/src/devices/smbus_ops.c +++ b/src/devices/smbus_ops.c @@ -34,7 +34,6 @@ struct bus *get_pbus_smbus(device_t dev) if (!pbus || !pbus->dev || !pbus->dev->ops || !pbus->dev->ops->ops_smbus_bus) { printk_alert("%s Cannot find smbus bus operations", dev_path(dev)); die(""); - for(;;); } return pbus; } |