20 bytes data to bss

This commit is contained in:
"Vladimir N. Oleynik" 2005-10-15 14:24:01 +00:00
parent 94c3331d47
commit d3d829aaf0

View File

@ -319,9 +319,8 @@ static void message(char *fmt, ...)
} else } else
#endif #endif
if ((fd = if ((fd = device_open(logFilePath,
device_open(logFilePath, O_WRONLY | O_CREAT | O_NOCTTY | O_APPEND |
O_WRONLY | O_CREAT | O_NOCTTY | O_APPEND |
O_NONBLOCK)) >= 0) { O_NONBLOCK)) >= 0) {
fl.l_type = F_WRLCK; fl.l_type = F_WRLCK;
fcntl(fd, F_SETLKW, &fl); fcntl(fd, F_SETLKW, &fl);
@ -363,8 +362,7 @@ static void message(char *fmt, ...)
close(fd); close(fd);
} else { } else {
/* Always send console messages to /dev/console so people will see them. */ /* Always send console messages to /dev/console so people will see them. */
if ((fd = if ((fd = device_open(_PATH_CONSOLE,
device_open(_PATH_CONSOLE,
O_WRONLY | O_NOCTTY | O_NONBLOCK)) >= 0) { O_WRONLY | O_NOCTTY | O_NONBLOCK)) >= 0) {
va_start(arguments, fmt); va_start(arguments, fmt);
vdprintf(fd, fmt, arguments); vdprintf(fd, fmt, arguments);
@ -400,7 +398,7 @@ static void logMessage(int pri, char *msg)
{ {
time_t now; time_t now;
char *timestamp; char *timestamp;
static char res[20] = ""; static char res[20];
#ifdef CONFIG_FEATURE_REMOTE_LOG #ifdef CONFIG_FEATURE_REMOTE_LOG
static char line[MAXLINE + 1]; static char line[MAXLINE + 1];
#endif #endif