diff options
| author | Paul Ingram <pingram@nicira.com> | 2013-09-12 18:19:04 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2013-09-13 09:11:46 -0700 |
| commit | 2b31d8e713de705fdca1c412d4748077f85e4009 (patch) | |
| tree | 7f0babf08dd16c1fbb411a1c16bf6e055aa88294 /lib/dynamic-string.h | |
| parent | 63a04c1b5fdbf5a0acfe7e39f27445dd5008c45f (diff) | |
| download | openvswitch-2b31d8e713de705fdca1c412d4748077f85e4009.tar.gz | |
vlog: Report timestamps in millisecond resolution in log messages.
To make debugging easier.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Paul Ingram <pingram@nicira.com>
Diffstat (limited to 'lib/dynamic-string.h')
| -rw-r--r-- | lib/dynamic-string.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/dynamic-string.h b/lib/dynamic-string.h index c069586e9..227234379 100644 --- a/lib/dynamic-string.h +++ b/lib/dynamic-string.h @@ -61,10 +61,9 @@ int ds_get_line(struct ds *, FILE *); int ds_get_preprocessed_line(struct ds *, FILE *, int *line_number); int ds_get_test_line(struct ds *, FILE *); -void ds_put_strftime(struct ds *, const char *template, time_t when, bool utc) - STRFTIME_FORMAT(2); -char *xastrftime(const char *template, time_t when, bool utc) - STRFTIME_FORMAT(1); +void ds_put_strftime_msec(struct ds *, const char *template, long long int when, + bool utc); +char *xastrftime_msec(const char *template, long long int when, bool utc); char *ds_cstr(struct ds *); const char *ds_cstr_ro(const struct ds *); |
