Skip to contentSkip to conversation

objhash: fix syntax error

PATCH In review Serge E. Hallyn 2 participants 2 messages Aug 7, 2009 – Aug 12, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 objhash: fix syntax error

first two args to ckpt_write_err() were switched

---
 checkpoint/objhash.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
checkpoint/objhash.c +2 -2
index 3452e83..a2fb278 100644
@@ -682,8 +682,8 @@ int ckpt_obj_visit(struct ckpt_ctx *ctx, void *ptr, enum obj_type type)
 		obj->flags |= CKPT_OBJ_VISITED;
 	} else if (!(ctx->uflags & CHECKPOINT_SUBTREE)) {
 		/* if not found and full container, report reverse leak */
-		ckpt_write_err("reverse leak: %s (%d) not found\n",
-			       ctx, obj->ops->obj_name, obj->objref);
+		ckpt_write_err(ctx, "reverse leak: %s (%d) not found\n",
+			       obj->ops->obj_name, obj->objref);
 		return -EAGAIN;
 	}
 
Signature · 1 line
1.6.1
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Serge E. Hallyn

first two args to ckpt_write_err() were switched

---

Sure... pushed.

Oren.

Quoted 18 lines
 checkpoint/objhash.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
checkpoint/objhash.c +2 -2
index 3452e83..a2fb278 100644
@@ -682,8 +682,8 @@ int ckpt_obj_visit(struct ckpt_ctx *ctx, void *ptr, enum obj_type type)
 		obj->flags |= CKPT_OBJ_VISITED;
 	} else if (!(ctx->uflags & CHECKPOINT_SUBTREE)) {
 		/* if not found and full container, report reverse leak */
-		ckpt_write_err("reverse leak: %s (%d) not found\n",
-			       ctx, obj->ops->obj_name, obj->objref);
+		ckpt_write_err(ctx, "reverse leak: %s (%d) not found\n",
+			       obj->ops->obj_name, obj->objref);
 		return -EAGAIN;
 	}