summaryrefslogtreecommitdiffstats
path: root/common/misc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-04-03 14:58:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-04-06 11:08:34 +0200
commit98c68ca4135491d8b7d44309c4ea7fbd40e91ed7 (patch)
treee425d6b170b20c70a88ce9a716f436680cc0a8bf /common/misc.c
parent8cf468582612ef95dc277167b6e50e1add66dc86 (diff)
downloadbarebox-98c68ca4135491d8b7d44309c4ea7fbd40e91ed7.tar.gz
fix errno_str without text error messages
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/misc.c')
-rw-r--r--common/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/misc.c b/common/misc.c
index cf65849..43c1a0c 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -151,6 +151,8 @@ const char *errno_str(void)
return str;
#else
+ sprintf(errno_string, "error %d", errno);
+ return errno_string;
#endif
}
EXPORT_SYMBOL(errno_str);