From c46e3db4d51cbe049835203c0cc3fa2cac4f6aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Mon, 9 Mar 2015 12:56:49 +0100 Subject: [PATCH] wifi_drv: silence 'Slab too large' error We will always see this error message when the driver is started. It is expected and not an actual error. When the driver is running it will not allocate larger chunks than the Slab provides. Therefore, we can safely ignore this message. Issue #1439. --- repos/dde_linux/src/lib/wifi/lxcc_emul.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/dde_linux/src/lib/wifi/lxcc_emul.cc b/repos/dde_linux/src/lib/wifi/lxcc_emul.cc index 70abb7478..51c680393 100644 --- a/repos/dde_linux/src/lib/wifi/lxcc_emul.cc +++ b/repos/dde_linux/src/lib/wifi/lxcc_emul.cc @@ -319,7 +319,7 @@ class Malloc msb = SLAB_STOP_LOG2; if (msb > SLAB_STOP_LOG2) { - PERR("Slab too large %u reqested %zu cached %d", 1U << msb, size, _cached); + // PERR("Slab too large %u reqested %zu cached %d", 1U << msb, size, _cached); return 0; } @@ -1227,7 +1227,7 @@ void *dma_alloc_coherent(struct device *dev, size_t size, void *addr = Malloc::dma().alloc(size, 12, &dma_addr); if (!addr) { - PERR("dma alloc: %zu failed", size); + // PERR("dma alloc: %zu failed", size); return 0; }