projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ee44f3
)
emulator: fix bad usage of "strerror()"
author
SeokYeon Hwang
<syeon.hwang@samsung.com>
Tue, 8 Jul 2014 09:05:32 +0000
(18:05 +0900)
committer
SeokYeon Hwang
<syeon.hwang@samsung.com>
Tue, 8 Jul 2014 09:07:03 +0000
(18:07 +0900)
Change-Id: Ic9cd037a0f39f98a0102394cb30731ea11a199da
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
util/error.c
patch
|
blob
|
history
diff --git
a/util/error.c
b/util/error.c
index f11f1d57a0ae0674aace7726d45a5ea807d67a2b..9dcde42e8cfa2396bc2d8ef67334991abcbe63dc 100644
(file)
--- a/
util/error.c
+++ b/
util/error.c
@@
-71,7
+71,7
@@
void error_set_errno(Error **errp, int os_errno, ErrorClass err_class,
va_start(ap, fmt);
msg1 = g_strdup_vprintf(fmt, ap);
if (os_errno != 0) {
- err->msg = g_strdup_printf("%s: %s", msg1, strerror(
os_errno
));
+ err->msg = g_strdup_printf("%s: %s", msg1, strerror(
abs(os_errno)
));
g_free(msg1);
} else {
err->msg = msg1;