[Devel] [PATCH 05/12] checkpoint/objhash.c ckpt_write_err->ckpt_err
serue at us.ibm.com
serue at us.ibm.com
Mon Nov 2 14:23:33 PST 2009
From: Serge E. Hallyn <serue at us.ibm.com>
Signed-off-by: Serge E. Hallyn <serue at us.ibm.com>
---
checkpoint/objhash.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/checkpoint/objhash.c b/checkpoint/objhash.c
index 730dd82..5d72d04 100644
--- a/checkpoint/objhash.c
+++ b/checkpoint/objhash.c
@@ -657,7 +657,7 @@ static inline int obj_reverse_leak(struct ckpt_ctx *ctx, struct ckpt_obj *obj)
* object while we were collecting, which we didn't catch.
*/
if (obj->ops->ref_users && !(ctx->uflags & CHECKPOINT_SUBTREE)) {
- ckpt_write_err(ctx, "OP", "leak: reverse added late (%s)",
+ ckpt_err(ctx, "%(O)%(P)Leak: reverse added late (%s)\n",
obj->objref, obj->ptr, obj->ops->obj_name);
return -EBUSY;
}
@@ -774,7 +774,7 @@ int ckpt_obj_visit(struct ckpt_ctx *ctx, void *ptr, enum obj_type type)
if (!obj) {
if (!(ctx->uflags & CHECKPOINT_SUBTREE)) {
/* if not found report reverse leak (full container) */
- ckpt_write_err(ctx, "OP", "leak: reverse unknown (%s)",
+ ckpt_err(ctx, "%(O)%(P)Leak: reverse unknown (%s)\n",
obj->objref, obj->ptr,
obj->ops->obj_name);
return -EBUSY;
@@ -870,7 +870,7 @@ int ckpt_obj_contained(struct ckpt_ctx *ctx)
if (obj->ops->ref_users(obj->ptr) != obj->users) {
ckpt_debug("usage leak: %s\n", obj->ops->obj_name);
- ckpt_write_err(ctx, "OP", "leak: usage (%d != %d (%s)",
+ ckpt_err(ctx, "%(O)%(P)Leak: usage (%d != %d (%s)\n",
obj->objref, obj->ptr,
obj->ops->ref_users(obj->ptr),
obj->users, obj->ops->obj_name);
@@ -896,7 +896,7 @@ int ckpt_obj_visited(struct ckpt_ctx *ctx)
if (!(obj->flags & CKPT_OBJ_VISITED)) {
ckpt_debug("reverse leak: %s (%d)\n",
obj->ops->obj_name, obj->objref);
- ckpt_write_err(ctx, "OP", "leak: not visited (%s)",
+ ckpt_err(ctx, "%(O)%(P)Leak: not visited (%s)\n",
obj->objref, obj->ptr,
obj->ops->obj_name);
return 0;
--
1.6.1
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list