Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
b2965329
Commit
b2965329
authored
Jan 10, 2002
by
Leigh B. Stoller
Browse files
Minor structural change to reduce chance of intermixed output
statements from the two threads.
parent
d0c50b3e
Changes
1
Show whitespace changes
Inline
Side-by-side
os/frisbee.redux/log.c
View file @
b2965329
...
...
@@ -41,17 +41,18 @@ void
log
(
const
char
*
fmt
,
...)
{
va_list
args
;
char
buf
[
BUFSIZ
];
va_start
(
args
,
fmt
);
vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
args
);
va_end
(
args
);
if
(
!
usesyslog
)
{
v
fp
rintf
(
stderr
,
fmt
,
args
);
fp
uts
(
buf
,
stderr
);
fputc
(
'\n'
,
stderr
);
fflush
(
stderr
);
}
else
vsyslog
(
LOG_INFO
,
fmt
,
args
);
va_end
(
args
);
syslog
(
LOG_INFO
,
"%s"
,
buf
);
}
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment