]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_nand.c
* Fix debug code in omap5912osk flash driver
[karo-tx-uboot.git] / common / cmd_nand.c
index dc268c85b12240bcae2d7a1308d220998dbe212f..449991785c66407ca5f34a04dd0b569f488c833c 100644 (file)
@@ -670,11 +670,12 @@ static int NanD_IdentChip(struct nand_chip *nand, int floor, int chip)
        id = READ_NAND(nand->IO_ADDR);
 
        NAND_DISABLE_CE(nand);  /* set pin high */
-       /* No response - return failure */
-       if (mfr == 0xff || mfr == 0) {
+
 #ifdef NAND_DEBUG
-               printf("NanD_Command (ReadID) got %d %d\n", mfr, id);
+       printf("NanD_Command (ReadID) got %x %x\n", mfr, id);
 #endif
+       if (mfr == 0xff || mfr == 0) {
+               /* No response - return failure */
                return 0;
        }