• A
    UBI: fix error message and compilation warnings · f5d5b1f8
    Artem Bityutskiy 提交于
    Fix the followong compilation warnings introduced by commit
    095751a6:
    
    drivers/mtd/ubi/scan.c: In function 'check_what_we_have':
    drivers/mtd/ubi/scan.c:960: warning: passing argument 1 of 'get_random_bytes' discards qualifiers from pointer target type
    
    Fix the following compilation warnings introduced by commit
    1a49af2c:
    
    drivers/mtd/ubi/io.c: In function 'ubi_io_read':
    drivers/mtd/ubi/io.c:153: warning: initialization makes integer from pointer without a cast
    drivers/mtd/ubi/io.c:170: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
    drivers/mtd/ubi/io.c:177: warning: format '%zd' expects type 'signed size_t', but argument 7 has type 'int'
    drivers/mtd/ubi/io.c:177: warning: too many arguments for format
    
    Also, amend the ECC error code string and add brackets and whitespace
    there - this should make the message readable.
    Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    f5d5b1f8
io.c 41.5 KB