diff mbox

bus: arm-ccn: Fix warning message

Message ID 1408382449-13685-1-git-send-email-pawel.moll@arm.com
State Accepted
Commit bf87bb12bd7062bf577163f3f6d765debbae6200
Headers show

Commit Message

Pawel Moll Aug. 18, 2014, 5:20 p.m. UTC
A message warning a user about wrong vc value was printing
out port instead.

Reported-by: Drew Richardson <drew.richardson@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
---
 drivers/bus/arm-ccn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Olof Johansson Aug. 24, 2014, 6:28 p.m. UTC | #1
On Mon, Aug 18, 2014 at 06:20:49PM +0100, Pawel Moll wrote:
> A message warning a user about wrong vc value was printing
> out port instead.
> 
> Reported-by: Drew Richardson <drew.richardson@arm.com>
> Signed-off-by: Pawel Moll <pawel.moll@arm.com>

Applied.


-Olof
diff mbox

Patch

diff --git a/drivers/bus/arm-ccn.c b/drivers/bus/arm-ccn.c
index 3266f8f..6f550d9 100644
--- a/drivers/bus/arm-ccn.c
+++ b/drivers/bus/arm-ccn.c
@@ -662,7 +662,7 @@  static int arm_ccn_pmu_event_init(struct perf_event *event)
 		}
 		if (e->num_vcs && vc >= e->num_vcs) {
 			dev_warn(ccn->dev, "Invalid vc %d for node/XP %d!\n",
-					port, node_xp);
+					vc, node_xp);
 			return -EINVAL;
 		}
 		valid = 1;