Modify some log.

This commit is contained in:
fengbojiang 2023-04-12 17:48:39 +08:00
parent 739ea21764
commit 2471d2560c
1 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ ff_attach_so_context(int proc_id)
sc = NULL;
}
DEBUG_LOG("attach sc:%p, so count:%d, free:%d, idx:%d, i:%d\n",
ERR_LOG("attach sc:%p, so count:%d, free:%d, idx:%d, i:%d\n",
sc, ff_so_zone->count, ff_so_zone->free, ff_so_zone->idx, i);
rte_spinlock_unlock(&ff_so_zone->lock);
@ -183,13 +183,13 @@ ff_attach_so_context(int proc_id)
void
ff_detach_so_context(struct ff_so_context *sc)
{
DEBUG_LOG("ff_so_zone:%p, sc:%p\n", ff_so_zone, sc);
ERR_LOG("ff_so_zone:%p, sc:%p\n", ff_so_zone, sc);
if (ff_so_zone == NULL || sc == NULL) {
return;
}
DEBUG_LOG("detach sc:%p, ops:%d, status:%d, idx:%d, inuse:%d, so free:%u, idx:%u\n",
ERR_LOG("detach sc:%p, ops:%d, status:%d, idx:%d, inuse:%d, so free:%u, idx:%u\n",
sc, sc->ops, sc->status, sc->idx, sc->inuse, ff_so_zone->free, ff_so_zone->idx);
rte_spinlock_lock(&ff_so_zone->lock);
@ -201,7 +201,7 @@ ff_detach_so_context(struct ff_so_context *sc)
ff_so_zone->idx = sc->idx;
}
DEBUG_LOG("detach sc:%p, ops:%d, status:%d, idx:%d, inuse:%d, so free:%u, idx:%u\n",
ERR_LOG("detach sc:%p, ops:%d, status:%d, idx:%d, inuse:%d, so free:%u, idx:%u\n",
sc, sc->ops, sc->status, sc->idx, sc->inuse, ff_so_zone->free, ff_so_zone->idx);
rte_spinlock_unlock(&ff_so_zone->lock);