From: Clemens Ladisch Date: Wed, 11 Apr 2012 15:38:47 +0000 (+0200) Subject: firewire: core: log error in case of failed bus manager lock X-Git-Tag: upstream/snapshot3+hdmi~6937^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b00b008888a851499bc039e70d12002af00ec9c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git firewire: core: log error in case of failed bus manager lock If the lock access to the bus manager register fails, also log the actual error that caused it to fail. Signed-off-by: Clemens Ladisch Signed-off-by: Stefan Richter --- diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c index cc595eb..2a03bb9 100644 --- a/drivers/firewire/core-card.c +++ b/drivers/firewire/core-card.c @@ -421,8 +421,8 @@ static void bm_work(struct work_struct *work) * root, and thus, IRM. */ new_root_id = local_id; - fw_notice(card, "%s, making local node (%02x) root\n", - "BM lock failed", new_root_id); + fw_notice(card, "BM lock failed (%s), making local node (%02x) root\n", + fw_rcode_string(rcode), new_root_id); goto pick_me; } } else if (card->bm_generation != generation) {