rptun_dump: use METAL_LOG_EMERGENCY log level
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
4a9bd26317
commit
434c49f282
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue