lightnvm: pblk: print incompatible line version correctly
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 13 Oct 2017 12:45:59 +0000 (14:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commitc79819bc0877e4cbed8013b1abc9697e8805b21b
tree8a8b9b3418bc6babc6134e24788d7f3005c384f7
parentc5493845b7b303315118fb4ab96654bf7cb897f0
lightnvm: pblk: print incompatible line version correctly

Correct it by converting little endian to cpu endian and also define
a macro for line version so that maintenance is easy.

Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-recovery.c
drivers/lightnvm/pblk.h