Skip to contentSkip to conversation

fsl_law: Fix LAW printing function

PATCH New Kumar Gala 1 participant 2 messages Feb 14, 2011 – Mar 7, 2011 Char and misc drivers

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 fsl_law: Fix LAW printing function

We had an extra '0x' in the output of the LAWAR header that would cause output like:

LAWBAR11: 0x00000000 LAWAR0x11: 0x80f0001d

intead of:

LAWBAR11: 0x00000000 LAWAR11: 0x80f0001d

---
 drivers/misc/fsl_law.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/misc/fsl_law.c +1 -1
index 63c08bf..031c974 100644
@@ -182,7 +182,7 @@ void print_laws(void)
 #else
 		printf("LAWBAR%02d: 0x%08x", i, in_be32(LAWBAR_ADDR(i)));
 #endif
-		printf(" LAWAR0x%02d: 0x%08x\n", i, lawar);
+		printf(" LAWAR%02d: 0x%08x\n", i, lawar);
 		printf("\t(EN: %d TGT: 0x%02x SIZE: ",
 		       (lawar & LAW_EN) ? 1 : 0, (lawar >> 20) & 0xff);
 		print_size(lawar_size(lawar), ")\n");
Signature · 1 line
1.7.2.3
author Applied
#1 lore raw

PATCH 1/1 fsl_law: Fix LAW printing function

Quoted 5 lines · Kumar Gala

We had an extra '0x' in the output of the LAWAR header that would cause output like:

LAWBAR11: 0x00000000 LAWAR0x11: 0x80f0001d

Quoted 8 lines

intead of:

LAWBAR11: 0x00000000 LAWAR11: 0x80f0001d

---
drivers/misc/fsl_law.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

applied

- k