Revision 3ced9f7a hw/qdev.c

b/hw/qdev.c
29 29
#include "qdev.h"
30 30
#include "sysemu.h"
31 31
#include "monitor.h"
32
#include "qerror.h"
32 33

  
33 34
static int qdev_hotplug = 0;
34 35

  
......
176 177
    /* find driver */
177 178
    info = qdev_find_info(NULL, driver);
178 179
    if (!info) {
179
        qemu_error("Device \"%s\" not found.  Try -device '?' for a list.\n",
180
                   driver);
180
        qemu_error_new(QERR_DEVICE_NOT_FOUND, driver);
181 181
        return NULL;
182 182
    }
183 183
    if (info->no_user) {

Also available in: Unified diff