From d017beae019a5c30ea605695e7869da82426c393 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 3 Jan 2016 11:24:17 +0100 Subject: [PATCH] use nicer debug messages --- hermit/drivers/net/mmnif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hermit/drivers/net/mmnif.c b/hermit/drivers/net/mmnif.c index a4c6ea331..4e4c6a4d8 100644 --- a/hermit/drivers/net/mmnif.c +++ b/hermit/drivers/net/mmnif.c @@ -594,7 +594,7 @@ err_t mmnif_init(struct netif *netif) err = vma_add((size_t)header_start_address, (size_t)header_start_address + ((nodes * header_size) >> PAGE_BITS), VMA_READ|VMA_WRITE|VMA_CACHEABLE); if (BUILTIN_EXPECT(err, 0)) { - DEBUGPRINTF("mmnif init(): vma_add failed\n"); + DEBUGPRINTF("mmnif init(): vma_add failed for header_start_address %p\n", header_start_address); goto out; } @@ -616,7 +616,7 @@ err_t mmnif_init(struct netif *netif) err = vma_add((size_t)heap_start_address, (size_t)heap_start_address + ((nodes * heap_size) >> PAGE_BITS), VMA_READ|VMA_WRITE|VMA_CACHEABLE); if (BUILTIN_EXPECT(!heap_start_address, 0)) { - DEBUGPRINTF("mmnif init(): vma_alloc failed\n"); + DEBUGPRINTF("mmnif init(): vma_add failed for heap_start_address %p\n", heap_start_address); goto out; }