Просмотр исходного кода

UBI: Fix debug message

We have to use j instead of i. i is the volume id
and not the block.

Reported-by: Alexander.Block@continental-corporation.com
Signed-off-by: Richard Weinberger <richard@nod.at>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Richard Weinberger 10 лет назад
Родитель
Сommit
5347417e56
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      drivers/mtd/ubi/eba.c

+ 1 - 1
drivers/mtd/ubi/eba.c

@@ -1358,7 +1358,7 @@ int self_check_eba(struct ubi_device *ubi, struct ubi_attach_info *ai_fastmap,
 					continue;
 
 				ubi_err(ubi, "LEB:%i:%i is PEB:%i instead of %i!",
-					vol->vol_id, i, fm_eba[i][j],
+					vol->vol_id, j, fm_eba[i][j],
 					scan_eba[i][j]);
 				ubi_assert(0);
 			}