bus: arm-ccn: Fix warning message
authorPawel Moll <pawel.moll@arm.com>
Mon, 18 Aug 2014 17:20:49 +0000 (18:20 +0100)
committerOlof Johansson <olof@lixom.net>
Sun, 24 Aug 2014 18:28:30 +0000 (11:28 -0700)
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>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/bus/arm-ccn.c

index 3266f8ff931133e88ab419bc08ddad3a96bf1314..6f550d9e7a2dbd1258a2ba833bcda6fb97a003a2 100644 (file)
@@ -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;