[Devel] [RFC PATCH 07/17] ckpt_write_err update checkpoint/objhash.c
Serge Hallyn
serge at us.ibm.com
Tue Oct 27 15:47:31 PDT 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..a152e69 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_write_err(ctx, "%(O)%(P)leak: reverse added late (%s)",
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_write_err(ctx, "%(O)%(P)leak: reverse unknown (%s)",
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_write_err(ctx, "%(O)%(P)leak: usage (%d != %d (%s)",
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_write_err(ctx, "%(O)%(P)leak: not visited (%s)",
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