Fix code style for system lib

This commit is contained in:
Lorenz Meier
2015-09-06 11:59:50 +02:00
parent aa88888c6a
commit fba569f12c
19 changed files with 816 additions and 646 deletions
+8 -4
View File
@@ -77,11 +77,13 @@ warnerr_core(int errcode, const char *fmt, va_list args)
vfprintf(stderr, fmt, args);
/* convenience as many parts of NuttX use negative errno */
if (errcode < 0)
if (errcode < 0) {
errcode = -errcode;
}
if (errcode < NOCODE)
if (errcode < NOCODE) {
fprintf(stderr, ": %s", strerror(errcode));
}
fprintf(stderr, "\n");
#elif CONFIG_ARCH_LOWPUTC
@@ -89,11 +91,13 @@ warnerr_core(int errcode, const char *fmt, va_list args)
lowvsyslog(fmt, args);
/* convenience as many parts of NuttX use negative errno */
if (errcode < 0)
if (errcode < 0) {
errcode = -errcode;
}
if (errcode < NOCODE)
if (errcode < NOCODE) {
lowsyslog(": %s", strerror(errcode));
}
lowsyslog("\n");
#endif