From 434c49f282e8be8c18b6fb4bd0cbea21074b3a77 Mon Sep 17 00:00:00 2001 From: ligd Date: Mon, 25 Apr 2022 18:39:15 +0800 Subject: [PATCH] rptun_dump: use METAL_LOG_EMERGENCY log level Signed-off-by: ligd --- drivers/rptun/rptun_dump.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/rptun/rptun_dump.c b/drivers/rptun/rptun_dump.c index 84eb64d2ac..7e7f0a9440 100644 --- a/drivers/rptun/rptun_dump.c +++ b/drivers/rptun/rptun_dump.c @@ -43,7 +43,7 @@ static void rptun_dump_addr(FAR struct rpmsg_device *rdev, ept = rpmsg_get_ept_from_addr(rdev, rx ? hdr->dst : hdr->src); if (ept) { - metal_log(METAL_LOG_INFO, + metal_log(METAL_LOG_EMERGENCY, " %s buffer %p hold by %s\n", rx ? "RX" : "TX", hdr, ept->name); } @@ -59,7 +59,7 @@ static void rptun_dump_buffer(FAR struct rpmsg_virtio_device *rvdev, int i; num = rptun_buffer_nused(rvdev, rx); - metal_log(METAL_LOG_INFO, + metal_log(METAL_LOG_EMERGENCY, " %s buffer, total %d, pending %d\n", rx ? "RX" : "TX", vq->vq_nentries, num); @@ -105,19 +105,19 @@ void rptun_dump(FAR struct rpmsg_virtio_device *rvdev) metal_mutex_acquire(&rdev->lock); } - metal_log(METAL_LOG_INFO, + metal_log(METAL_LOG_EMERGENCY, "Dump rpmsg info between cpu %s <==> %s:\n", CONFIG_RPTUN_LOCAL_CPUNAME, rpmsg_get_cpuname(rdev)); - metal_log(METAL_LOG_INFO, " rpmsg ept list:\n"); + metal_log(METAL_LOG_EMERGENCY, " rpmsg ept list:\n"); metal_list_for_each(&rdev->endpoints, node) { ept = metal_container_of(node, struct rpmsg_endpoint, node); - metal_log(METAL_LOG_INFO, " ept %s\n", ept->name); + metal_log(METAL_LOG_EMERGENCY, " ept %s\n", ept->name); } - metal_log(METAL_LOG_INFO, " rpmsg buffer list:\n"); + metal_log(METAL_LOG_EMERGENCY, " rpmsg buffer list:\n"); rptun_dump_buffer(rvdev, true); rptun_dump_buffer(rvdev, false);