Il 26/04/2014 02:46, Hani Benhabiles ha scritto:
if (ambiguous) { > error_setg(errp, "Path '%s' is ambiguous.", path); > } else { > error_set(errp, QERR_DEVICE_NOT_FOUND, path); > } >Probably, you meant something like this:if (ambiguous) { error_set(errp, QERR_AMBIGUOUS_PATH, path); } else if (!obj) { error_set(errp, QERR_DEVICE_NOT_FOUND, path); }
No, error_set is being phased out. New errors typically use error_setg instead.
Paolo