--- embedtools/src/athctl.c 2014/02/05 15:44:05 1.4 +++ embedtools/src/athctl.c 2017/06/28 15:19:32 1.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: athctl.c,v 1.4 2014/02/05 15:44:05 misho Exp $ + * $Id: athctl.c,v 1.5 2017/06/28 15:19:32 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2014 +Copyright 2004 - 2017 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -103,7 +103,7 @@ calcDistance(int ifid, int dist, int cor) errno, strerror(errno)); return -1; } else - VERB(1) printf("Info:: set slottime(%d) from %d to %d ... OK!\n", len, + VERB(1) printf("Info:: set slottime(%zd) from %d to %d ... OK!\n", len, slottime[1], slottime[0]); memset(szStr, 0, STRSIZ); @@ -119,7 +119,7 @@ calcDistance(int ifid, int dist, int cor) errno, strerror(errno)); return -1; } else - VERB(1) printf("Info:: set acktimeout(%d) from %d to %d ... OK!\n", len, + VERB(1) printf("Info:: set acktimeout(%zd) from %d to %d ... OK!\n", len, timeout[1], timeout[0]); memset(szStr, 0, STRSIZ); @@ -135,7 +135,7 @@ calcDistance(int ifid, int dist, int cor) errno, strerror(errno)); return -1; } else - VERB(1) printf("Info:: set ctstimeout(%d) from %d to %d ... OK!\n", len, + VERB(1) printf("Info:: set ctstimeout(%zd) from %d to %d ... OK!\n", len, timeout[1], timeout[0]); return timeout[0]; @@ -158,7 +158,7 @@ calcTimeout(int ifid, int cor) printf("Error:: get sysctl %s #%d - %s\n", szStr, errno, strerror(errno)); return -1; } else - VERB(1) printf("Info:: get slottime(%d) %d ... OK!\n", len, slottime[1]); + VERB(1) printf("Info:: get slottime(%zd) %d ... OK!\n", len, slottime[1]); memset(szStr, 0, STRSIZ); snprintf(szStr, STRSIZ, SC_ACKTIMEOUT, ifid); @@ -169,7 +169,7 @@ calcTimeout(int ifid, int cor) printf("Error:: get sysctl %s #%d - %s\n", szStr, errno, strerror(errno)); return -1; } else - VERB(1) printf("Info:: get acktimeout(%d) %d ... OK!\n", len, timeout[1]); + VERB(1) printf("Info:: get acktimeout(%zd) %d ... OK!\n", len, timeout[1]); slottime[0] = (timeout[1] - 3 - cor) / 2; VERB(3) printf("Info:: calculated slottime=%d\n", slottime[0]);