aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2013-08-16 12:38:28 -0400
committerGene Cumm <gene.cumm@gmail.com>2013-09-23 17:25:32 -0400
commit37141eb6b0265693052aeb8e2d38bf6e7fa5176b (patch)
tree686cbac17f8d5ff8766ff9faa2c798f4790f1718
parente411537358f11138d421a9eaed6597068add7a2c (diff)
downloadsyslinux-37141eb6b0265693052aeb8e2d38bf6e7fa5176b.tar.gz
syslinux-37141eb6b0265693052aeb8e2d38bf6e7fa5176b.tar.xz
syslinux-37141eb6b0265693052aeb8e2d38bf6e7fa5176b.zip
undiif: show thread of execution on UNDIIF_ID_DEBUG
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--core/lwip/src/netif/undiif.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/lwip/src/netif/undiif.c b/core/lwip/src/netif/undiif.c
index ce798966..e62a984d 100644
--- a/core/lwip/src/netif/undiif.c
+++ b/core/lwip/src/netif/undiif.c
@@ -174,7 +174,7 @@ static u8_t undiarp_cached_entry;
#define UNDIARP_TRY_HARD 1
#define UNDIARP_FIND_ONLY 2
-#define UNIDIF_ID_STRLEN 244
+#define UNIDIF_ID_STRLEN 300
static inline bool undi_is_ethernet(struct netif *netif)
@@ -481,7 +481,9 @@ undi_transmit(struct netif *netif, struct pbuf *pbuf,
struct eth_hdr *ethhdr = pbuf->payload;
- strpos = snprintf_eth_hdr(str + strpos, UNIDIF_ID_STRLEN - strpos,
+ strpos += snprintf(str + strpos, UNIDIF_ID_STRLEN - strpos,
+ "undi xmit thd '%s'\n", current()->name);
+ strpos += snprintf_eth_hdr(str + strpos, UNIDIF_ID_STRLEN - strpos,
"undi", ethhdr, 'x', '0', "");
strpos += snprintf_arp_hdr(str + strpos, UNIDIF_ID_STRLEN - strpos,
" arp", ethhdr, 'x', '0', "");
@@ -1465,7 +1467,9 @@ void undiif_input(t_PXENV_UNDI_ISR *isr)
char *str = malloc(UNIDIF_ID_STRLEN);
int strpos = 0;
- strpos = snprintf_eth_hdr(str + strpos, UNIDIF_ID_STRLEN - strpos,
+ strpos += snprintf(str + strpos, UNIDIF_ID_STRLEN - strpos,
+ "undi recv thd '%s'\n", current()->name);
+ strpos += snprintf_eth_hdr(str + strpos, UNIDIF_ID_STRLEN - strpos,
"undi", ethhdr, 'r', '0', "");
strpos += snprintf_arp_hdr(str + strpos, UNIDIF_ID_STRLEN - strpos,
" arp", ethhdr, 'r', '0', "");