[BACK]Return to dbg.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / aucat

Diff for /src/usr.bin/aucat/Attic/dbg.c between version 1.2 and 1.3

version 1.2, 2011/06/30 19:17:10 version 1.3, 2012/04/11 06:05:43
Line 39 
Line 39 
 } while (0)  } while (0)
   
 char dbg_buf[DBG_BUFSZ];        /* buffer where traces are stored */  char dbg_buf[DBG_BUFSZ];        /* buffer where traces are stored */
 unsigned dbg_used = 0;          /* bytes used in the buffer */  unsigned int dbg_used = 0;              /* bytes used in the buffer */
 unsigned dbg_sync = 1;          /* if true, flush after each '\n' */  unsigned int dbg_sync = 1;              /* if true, flush after each '\n' */
   
 /*  /*
  * write debug info buffer on stderr   * write debug info buffer on stderr
Line 77 
Line 77 
 dbg_putx(unsigned long num)  dbg_putx(unsigned long num)
 {  {
         char dig[sizeof(num) * 2], *p = dig, c;          char dig[sizeof(num) * 2], *p = dig, c;
         unsigned ndig;          unsigned int ndig;
   
         if (num != 0) {          if (num != 0) {
                 for (ndig = 0; num != 0; ndig++) {                  for (ndig = 0; num != 0; ndig++) {
Line 100 
Line 100 
 dbg_putu(unsigned long num)  dbg_putu(unsigned long num)
 {  {
         char dig[sizeof(num) * 3], *p = dig;          char dig[sizeof(num) * 3], *p = dig;
         unsigned ndig;          unsigned int ndig;
   
         if (num != 0) {          if (num != 0) {
                 for (ndig = 0; num != 0; ndig++) {                  for (ndig = 0; num != 0; ndig++) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3