git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
daemon: Precisely document signals that cause the monitor to restart.
[sliver-openvswitch.git]
/
lib
/
vlog.c
diff --git
a/lib/vlog.c
b/lib/vlog.c
index
a267112
..
b1ca158
100644
(file)
--- a/
lib/vlog.c
+++ b/
lib/vlog.c
@@
-42,8
+42,6
@@
VLOG_DEFINE_THIS_MODULE(vlog);
VLOG_DEFINE_THIS_MODULE(vlog);
-COVERAGE_DEFINE(vlog_recursive);
-
/* ovs_assert() logs the assertion message, so using ovs_assert() in this
* source file could cause recursion. */
#undef ovs_assert
/* ovs_assert() logs the assertion message, so using ovs_assert() in this
* source file could cause recursion. */
#undef ovs_assert
@@
-583,7
+581,7
@@
static void
vlog_init__(void)
{
static char *program_name_copy;
vlog_init__(void)
{
static char *program_name_copy;
-
time_
t now;
+
long long in
t now;
/* openlog() is allowed to keep the pointer passed in, without making a
* copy. The daemonize code sometimes frees and replaces 'program_name',
/* openlog() is allowed to keep the pointer passed in, without making a
* copy. The daemonize code sometimes frees and replaces 'program_name',
@@
-593,10
+591,10
@@
vlog_init__(void)
program_name_copy = program_name ? xstrdup(program_name) : NULL;
openlog(program_name_copy, LOG_NDELAY, LOG_DAEMON);
program_name_copy = program_name ? xstrdup(program_name) : NULL;
openlog(program_name_copy, LOG_NDELAY, LOG_DAEMON);
- now = time_wall();
+ now = time_wall
_msec
();
if (now < 0) {
if (now < 0) {
- char *s = xastrftime("%a, %d %b %Y %H:%M:%S", now, true);
- VLOG_ERR("current time is negative: %s (%l
d)", s, (long int)
now);
+ char *s = xastrftime
_msec
("%a, %d %b %Y %H:%M:%S", now, true);
+ VLOG_ERR("current time is negative: %s (%l
ld)", s,
now);
free(s);
}
free(s);
}
@@
-746,12
+744,12
@@
format_log_message(const struct vlog_module *module, enum vlog_level level,
ds_put_cstr(s, vlog_get_module_name(module));
break;
case 'd':
ds_put_cstr(s, vlog_get_module_name(module));
break;
case 'd':
- p = fetch_braces(p, "%Y-%m-%d %H:%M:%S", tmp, sizeof tmp);
- ds_put_strftime
(s, tmp, time_wall
(), false);
+ p = fetch_braces(p, "%Y-%m-%d %H:%M:%S
.###
", tmp, sizeof tmp);
+ ds_put_strftime
_msec(s, tmp, time_wall_msec
(), false);
break;
case 'D':
break;
case 'D':
- p = fetch_braces(p, "%Y-%m-%d %H:%M:%S", tmp, sizeof tmp);
- ds_put_strftime
(s, tmp, time_wall
(), true);
+ p = fetch_braces(p, "%Y-%m-%d %H:%M:%S
.###
", tmp, sizeof tmp);
+ ds_put_strftime
_msec(s, tmp, time_wall_msec
(), true);
break;
case 'm':
/* Format user-supplied log message and trim trailing new-lines. */
break;
case 'm':
/* Format user-supplied log message and trim trailing new-lines. */