[PATCH v2 05/11] net/nfp: adjust the log statement
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 12 03:38:55 CEST 2023
On Thu, 12 Oct 2023 09:26:58 +0800
Chaoyong He <chaoyong.he at corigine.com> wrote:
> + PMD_RX_LOG(ERR, "mbuf overflow likely due to the RX offset.\n"
> + "\t\tYour mbuf size should have extra space for"
> + " RX offset=%u bytes.\n"
> + "\t\tCurrently you just have %u bytes available"
> + " but the received packet is %u bytes long",
> + hw->rx_offset,
> + rxq->mbuf_size - hw->rx_offset,
> + mb->data_len);
Multi-line log messages with tabs look good on command line (developer)
but don't work well when application is run as a service and logging is going to syslog.
Syslog doesn't like messages with newlines in them.
The message is way to long. Make it shorter, and put any other notes in a comment please..
More information about the dev
mailing list