From 9581d7c03b21b0f7a360e504126499bef1e37300 Mon Sep 17 00:00:00 2001 From: Federico Cabiddu Date: Mon, 14 Sep 2015 12:27:52 +0000 Subject: [PATCH] tm: make t_append_branches return the number of added branches --- modules/tm/t_append_branches.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c index d32ac1aed64..1344a5d9e46 100644 --- a/modules/tm/t_append_branches.c +++ b/modules/tm/t_append_branches.c @@ -153,7 +153,7 @@ int t_append_branches(void) { if (added_branches==0) { if(lowest_ret!=E_CFG) - LOG(L_ERR, "ERROR: t_append_branch: failure to add branches\n"); + LOG(L_ERR, "ERROR: t_append_branch: failure to add branches (%d)\n", lowest_ret); ser_error=lowest_ret; replies_locked = 0; UNLOCK_REPLIES(t); @@ -198,7 +198,7 @@ int t_append_branches(void) { set_kr(REQ_FWDED); replies_locked = 0; UNLOCK_REPLIES(t); - return 1; + return success_branch; canceled: DBG("t_append_branches: cannot append branches to a canceled transaction\n");