summaryrefslogtreecommitdiff
path: root/lib/ChangeLog
diff options
context:
space:
mode:
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>2007-04-28 22:14:10 +0000
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>2007-04-28 22:14:10 +0000
commit1ed72e0b3a643fa1be6f1efa904965798a575cd1 (patch)
tree052341ede20e44b6aa23b1cd799d08f9b762c1c2 /lib/ChangeLog
parenteda9ba743c1eb7c32b2ae9b8989d3555f1890758 (diff)
[logging] Add new "log timestamp precision" command for subsecond timestamps
2007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * command.c: (config_write_host) Save "log timestamp precision" if not default value. (show_logging) Show configured timestamp precision. (config_log_timestamp_precision) Enable configuration of timestamp precision. (no_config_log_timestamp_precision) Restore default timestamp precision. (cmd_init) Install new timestamp precision commands. * log.h: (struct zlog) New timestamp_precision field. (quagga_timestamp) New function to generate a timestamp with the desired precision. (struct timestamp_control) Declare a structure for use in avoiding repeated duplicate calls to quagga_timestamp. * log.c: (quagga_timestamp) New function to generate a timestamp of the desired precision. (time_print) Call quagga_timestamp if the time hasn't already been calculated. (vzlog) Initialize a timestamp_control structure and pass it to time_print and vty_log. (zlog_backtrace) Fix 64-bit problem: cannot print size_t with %u. * vty.h: Must now include "log.h". (vty_log) Takes an additional struct timestamp_control argument. * vty.c: (vty_log_out) Use new struct timestamp_control and new quagga_timestamp function to print timestamps of the desired precision. (vty_time_print) Use new quagga_timestamp function. (vty_log) Accept new struct timestamp_control argument and pass it down to vty_log_out.
Diffstat (limited to 'lib/ChangeLog')
-rw-r--r--lib/ChangeLog31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index ff32fcce..3e515f87 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,34 @@
+2007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * command.c: (config_write_host) Save "log timestamp precision"
+ if not default value.
+ (show_logging) Show configured timestamp precision.
+ (config_log_timestamp_precision) Enable configuration of timestamp
+ precision.
+ (no_config_log_timestamp_precision) Restore default timestamp
+ precision.
+ (cmd_init) Install new timestamp precision commands.
+ * log.h: (struct zlog) New timestamp_precision field.
+ (quagga_timestamp) New function to generate a timestamp with the
+ desired precision.
+ (struct timestamp_control) Declare a structure for use in avoiding
+ repeated duplicate calls to quagga_timestamp.
+ * log.c: (quagga_timestamp) New function to generate a timestamp
+ of the desired precision.
+ (time_print) Call quagga_timestamp if the time hasn't already been
+ calculated.
+ (vzlog) Initialize a timestamp_control structure and pass it to
+ time_print and vty_log.
+ (zlog_backtrace) Fix 64-bit problem: cannot print size_t with %u.
+ * vty.h: Must now include "log.h".
+ (vty_log) Takes an additional struct timestamp_control argument.
+ * vty.c: (vty_log_out) Use new struct timestamp_control and new
+ quagga_timestamp function to print timestamps of the desired
+ precision.
+ (vty_time_print) Use new quagga_timestamp function.
+ (vty_log) Accept new struct timestamp_control argument and pass it
+ down to vty_log_out.
+
2007-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* smux.c: (smux_trap) Fix printf format to work with 64-bit size_t.