Revision 8ad00f84

b/hw/pc.c
234 234
 and used there as well */
235 235
static int pc_boot_set(void *opaque, const char *boot_device)
236 236
{
237
    Monitor *mon = cur_mon;
238 237
#define PC_MAX_BOOT_DEVICES 3
239 238
    RTCState *s = (RTCState *)opaque;
240 239
    int nbds, bds[3] = { 0, };
......
242 241

  
243 242
    nbds = strlen(boot_device);
244 243
    if (nbds > PC_MAX_BOOT_DEVICES) {
245
        monitor_printf(mon, "Too many boot devices for PC\n");
244
        qemu_error("Too many boot devices for PC\n");
246 245
        return(1);
247 246
    }
248 247
    for (i = 0; i < nbds; i++) {
249 248
        bds[i] = boot_device2nibble(boot_device[i]);
250 249
        if (bds[i] == 0) {
251
            monitor_printf(mon, "Invalid boot device for PC: '%c'\n",
252
                           boot_device[i]);
250
            qemu_error("Invalid boot device for PC: '%c'\n",
251
                       boot_device[i]);
253 252
            return(1);
254 253
        }
255 254
    }

Also available in: Unified diff