[PATCH] mmc-utils: Fix register number in error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Register being set is other than mentioned in printed message.

Signed-off-by: Tomas Melin<tomas.melin@xxxxxxxxxxx>
---
  mmc_cmds.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mmc_cmds.c b/mmc_cmds.c
index 21ddd55..ef3a50f 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -507,7 +507,7 @@ int do_disable_512B_emulation(int nargs, char **argv)

          if (ret) {
              fprintf(stderr, "Could not write 0x%02x to EXT_CSD[%d] in 
%s\n",
-                    1, EXT_CSD_BOOT_WP, device);
+                    1, EXT_CSD_NATIVE_SECTOR_SIZE, device);
              exit(1);
          }
          printf("MMC disable 512B emulation successful.  Now reset the 
device to switch to 4KB native sector mode.\n");
-- 
2.1.4

��.n��������+%������w��{.n�����{��i��)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux