Il 25/04/2014 17:51, Andreas Färber ha scritto:
if (ambiguous) { error_setg(errp, "Path '%s' is ambiguous.", path); } else { error_set(errp, QERR_DEVICE_NOT_FOUND, path); } My reasoning is that an ambiguous path might deliver unpredictable results (whichever it encounters first), across QEMU versions at least. But I'd like to hear Paolo's opinion, too, since he was involved in loosening requirements on paths.
I agree. I think the only loosening I did was to allow an empty path if the required type is not NULL.
Paolo