fix up long types in printfs
from Clive Stubbings.
This commit is contained in:
parent
44a1c7b1fb
commit
07e6b65182
2 changed files with 8 additions and 8 deletions
12
lib/maca.c
12
lib/maca.c
|
@ -70,29 +70,29 @@ void Print_Packets(char *s) {
|
|||
int i = 0;
|
||||
printf("packet pool after %s:\n\r",s);
|
||||
p = free_head;
|
||||
printf("free_head: 0x%x ", (uint32_t) free_head);
|
||||
printf("free_head: 0x%lx ", (uint32_t) free_head);
|
||||
while(p != 0) {
|
||||
i++;
|
||||
p = p->left;
|
||||
printf("->0x%x", (uint32_t) p);
|
||||
printf("->0x%lx", (uint32_t) p);
|
||||
}
|
||||
printf("\n\r");
|
||||
|
||||
p = tx_head;
|
||||
printf("tx_head: 0x%x ", (uint32_t) tx_head);
|
||||
printf("tx_head: 0x%lx ", (uint32_t) tx_head);
|
||||
while(p != 0) {
|
||||
i++;
|
||||
p = p->left;
|
||||
printf("->0x%x", (uint32_t) p);
|
||||
printf("->0x%lx", (uint32_t) p);
|
||||
}
|
||||
printf("\n\r");
|
||||
|
||||
p = rx_head;
|
||||
printf("rx_head: 0x%x ", (uint32_t) rx_head);
|
||||
printf("rx_head: 0x%lx ", (uint32_t) rx_head);
|
||||
while(p != 0) {
|
||||
i++;
|
||||
p = p->left;
|
||||
printf("->0x%x", (uint32_t) p);
|
||||
printf("->0x%lx", (uint32_t) p);
|
||||
}
|
||||
printf("\n\r");
|
||||
printf("found %d packets\n\r",i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue