[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] tools/xen-ucode: fix error code propagation of microcode load operation
Otherwise it's impossible to know the reason for a fault or blob rejection inside the automation. Signed-off-by: Igor Druzhinin <igor.druzhinin@xxxxxxxxxx> --- tools/misc/xen-ucode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/misc/xen-ucode.c b/tools/misc/xen-ucode.c index 0c257f4..2c907e1 100644 --- a/tools/misc/xen-ucode.c +++ b/tools/misc/xen-ucode.c @@ -62,8 +62,11 @@ int main(int argc, char *argv[]) ret = xc_microcode_update(xch, buf, len); if ( ret ) + { + ret = errno; fprintf(stderr, "Failed to update microcode. (err: %s)\n", strerror(errno)); + } xc_interface_close(xch); @@ -74,5 +77,5 @@ int main(int argc, char *argv[]) } close(fd); - return 0; + return ret; } -- 2.7.4
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |