Revision 9ef5c4bf hw/qdev-properties.c
b/hw/qdev-properties.c | ||
---|---|---|
500 | 500 |
dev->info->name, name); |
501 | 501 |
return -1; |
502 | 502 |
} |
503 |
return prop->info->parse(dev, prop, value); |
|
503 |
if (prop->info->parse(dev, prop, value) != 0) { |
|
504 |
fprintf(stderr, "property \"%s.%s\": failed to parse \"%s\"\n", |
|
505 |
dev->info->name, name, value); |
|
506 |
return -1; |
|
507 |
} |
|
508 |
return 0; |
|
504 | 509 |
} |
505 | 510 |
|
506 | 511 |
void qdev_prop_set(DeviceState *dev, const char *name, void *src, enum PropertyType type) |
... | ... | |
619 | 624 |
continue; |
620 | 625 |
} |
621 | 626 |
if (qdev_prop_parse(dev, prop->property, prop->value) != 0) { |
622 |
abort();
|
|
627 |
exit(1);
|
|
623 | 628 |
} |
624 | 629 |
} |
625 | 630 |
} |
Also available in: Unified diff