From: Weijun Pan <wpan3636@gmail.com>
To: Rosen Xu <rosen.xu@altera.com>
Cc: dev@dpdk.org, Weijun Pan <wpan36@wisc.edu>
Subject: [PATCH] raw/ifpga: replace printf calls with logging
Date: Tue, 7 Apr 2026 09:19:28 -0500 [thread overview]
Message-ID: <20260407141928.9426-2-wpan36@wisc.edu> (raw)
In-Reply-To: <20260407141928.9426-1-wpan36@wisc.edu>
The ifpga rawdev driver uses printf() directly for runtime messages.
DPDK drivers should use the logging framework instead of printing
to standard output.
Replace the remaining direct printf() calls in ifpga_rawdev.c with
the driver logging macros.
Signed-off-by: Weijun Pan <wpan36@wisc.edu>
---
drivers/raw/ifpga/ifpga_rawdev.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c
index 5b9b596435..e004e002b7 100644
--- a/drivers/raw/ifpga/ifpga_rawdev.c
+++ b/drivers/raw/ifpga/ifpga_rawdev.c
@@ -434,7 +434,7 @@ static int set_surprise_link_check_aer(
uint32_t aer_new0, aer_new1;
if (!ifpga_rdev || !ifpga_rdev->rawdev) {
- printf("\n device does not exist\n");
+ IFPGA_RAWDEV_PMD_ERR("device does not exist");
return -EFAULT;
}
@@ -491,7 +491,7 @@ static int set_surprise_link_check_aer(
if (fd != -1)
close(fd);
- printf(">>>>>>Set AER %x,%x %x,%x\n",
+ IFPGA_RAWDEV_PMD_INFO(">>>>>>Set AER %x,%x %x,%x",
ifpga_rdev->aer_old[0], ifpga_rdev->aer_old[1],
aer_new0, aer_new1);
@@ -527,7 +527,7 @@ ifpga_rawdev_gsd_handle(__rte_unused void *param)
}
if (gsd_enable)
- printf(">>>>>>Pls Shutdown APP\n");
+ IFPGA_RAWDEV_PMD_WARN(">>>>>>Pls Shutdown APP");
rte_delay_us(100 * MS);
}
--
2.34.1
prev parent reply other threads:[~2026-04-08 8:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-07 14:19 [PATCH] bus/fslmc: fix shadowed variables in queue storage macros Weijun Pan
2026-04-07 14:19 ` Weijun Pan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260407141928.9426-2-wpan36@wisc.edu \
--to=wpan3636@gmail.com \
--cc=dev@dpdk.org \
--cc=rosen.xu@altera.com \
--cc=wpan36@wisc.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox