Update of /cvsroot/dhcp-agent/dhcp-agent
In directory usw-pr-cvs1:/tmp/cvs-serv27045
Modified Files:
dhcp-util.c dhcp-agent.h
Log Message:
added constant for output mesage line length
Index: dhcp-util.c
===================================================================
RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-util.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** dhcp-util.c 13 Oct 2002 16:29:42 -0000 1.27
--- dhcp-util.c 22 Oct 2002 00:46:14 -0000 1.28
***************
*** 84,88 ****
stringbuffer_avprintf(msg_sb, fmt, ap);
! stringbuffer_align(msg_sb, 0, 60 - stringbuffer_getlen(prefix_sb));
stringbuffer_marknewlines(msg_sb);
--- 84,88 ----
stringbuffer_avprintf(msg_sb, fmt, ap);
! stringbuffer_align(msg_sb, 0, MESSAGE_LINE_LENGTH - stringbuffer_getlen(prefix_sb));
stringbuffer_marknewlines(msg_sb);
Index: dhcp-agent.h
===================================================================
RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-agent.h,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** dhcp-agent.h 21 Oct 2002 01:02:48 -0000 1.70
--- dhcp-agent.h 22 Oct 2002 00:46:14 -0000 1.71
***************
*** 151,154 ****
--- 151,158 ----
WARNING_VERBOSITY_LEVEL, DEBUG_VERBOSITY_LEVEL, MAX_VERBOSITY_LEVEL };
+ /* Line length for messages before breaking into a new line. */
+
+ #define MESSAGE_LINE_LENGTH 60
+
/* * * * * * * * * * *
* Data structures. *
|