Skip to contentSkip to conversation

imx: nandbcb: Fix printf format in write_fcb

PATCH In review Pali Rohár 3 participants 5 messages Oct 20, 2021 – Feb 5, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: nandbcb: Fix printf format in write_fcb

Correct printf format for unsigned long long is %llx and not %llxx.

---
 arch/arm/mach-imx/cmd_nandbcb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/cmd_nandbcb.c +1 -1
index 09622c13c980..646da0198660 100644
@@ -650,7 +650,7 @@ static int write_fcb(struct boot_config *boot_cfg, struct fcb_block *fcb)
 			};
 
 			ret = mtd_write_oob(mtd, off, &ops);
-			printf("NAND FCB write to 0x%llxx offset 0x%zx written: %s\n", off, ops.len, ret ? "ERROR" : "OK");
+			printf("NAND FCB write to 0x%llx offset 0x%zx written: %s\n", off, ops.len, ret ? "ERROR" : "OK");
 		}
 
 		if (ret)
Signature · 1 line
2.20.1
#1 lore raw

PING?

Quoted 23 lines · On Wednesday 20 October 2021 11:13:15 Pali Rohár wrote:

Correct printf format for unsigned long long is %llx and not %llxx.

---
 arch/arm/mach-imx/cmd_nandbcb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/cmd_nandbcb.c +1 -1
index 09622c13c980..646da0198660 100644
@@ -650,7 +650,7 @@ static int write_fcb(struct boot_config *boot_cfg, struct fcb_block *fcb)
 			};
 
 			ret = mtd_write_oob(mtd, off, &ops);
-			printf("NAND FCB write to 0x%llxx offset 0x%zx written: %s\n", off, ops.len, ret ? "ERROR" : "OK");
+			printf("NAND FCB write to 0x%llx offset 0x%zx written: %s\n", off, ops.len, ret ? "ERROR" : "OK");
 		}
 
 		if (ret)
Signature · 1 line
2.20.1
#2 lore raw

Just friendly reminder for this patch...

Quoted 26 lines · On Tuesday 07 December 2021 21:43:09 Pali Rohár wrote:

PING?

Quoted 23 lines · On Wednesday 20 October 2021 11:13:15 Pali Rohár wrote:

Correct printf format for unsigned long long is %llx and not %llxx.

---
 arch/arm/mach-imx/cmd_nandbcb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/cmd_nandbcb.c +1 -1
index 09622c13c980..646da0198660 100644
@@ -650,7 +650,7 @@ static int write_fcb(struct boot_config *boot_cfg, struct fcb_block *fcb)
 			};
 
 			ret = mtd_write_oob(mtd, off, &ops);
-			printf("NAND FCB write to 0x%llxx offset 0x%zx written: %s\n", off, ops.len, ret ? "ERROR" : "OK");
+			printf("NAND FCB write to 0x%llx offset 0x%zx written: %s\n", off, ops.len, ret ? "ERROR" : "OK");
 		}
 
 		if (ret)
Signature · 1 line
2.20.1
#4 lore raw

PATCH 1/1 imx: nandbcb: Fix printf format in write_fcb

In reply to Pali Rohár
Quoted 3 lines

Correct printf format for unsigned long long is %llx and not %llxx.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================