Misc debug to fix a printf bug, traced the bug to 64-bit division code
[tpg/acess2.git] / Usermode / Applications / ifconfig_src / main.c
index ba78838..2fe0f24 100644 (file)
@@ -39,8 +39,11 @@ int main(int argc, char *argv[])
        
        if( strcmp(argv[1], "autoconf") == 0 ) {
                DoAutoConfig(argv[2]);
+               return 0;
        }
        
+       PrintUsage(argv[0]);
+       
        return 0;
 }
 
@@ -125,6 +128,7 @@ int AddInterface( char *Device )
        
        dp = open(IPSTACK_ROOT, OPENFLAG_READ);
        ret = ioctl(dp, 4, Device);
+       printf("AddInterface: ret = 0x%x = %i\n", ret, ret);
        close(dp);
        
        if( ret < 0 ) {

UCC git Repository :: git.ucc.asn.au