Changeset 1856 for zzuf


Ignore:
Timestamp:
Nov 2, 2007, 10:40:38 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Support %d, %ld and %lld in addition to %i etc. in debug().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/debug.c

    r1735 r1856  
    105105            }
    106106        }
    107         else if(*f == 'i')
     107        else if(*f == 'i' || *f == 'd')
    108108        {
    109109            int i = va_arg(args, int);
     
    115115            WRITE_INT(_zz_debugfd, i, 16);
    116116        }
    117         else if(f[0] == 'l' && f[1] == 'i')
     117        else if(f[0] == 'l' && (f[1] == 'i' || f[1] == 'd'))
    118118        {
    119119            long int i = va_arg(args, long int);
     
    121121            f++;
    122122        }
    123         else if(f[0] == 'l' && f[1] == 'l' && f[2] == 'i')
     123        else if(f[0] == 'l' && f[1] == 'l' && (f[2] == 'i' || f[1] == 'd'))
    124124        {
    125125            long long int i = va_arg(args, long long int);
Note: See TracChangeset for help on using the changeset viewer.