crypto: atmel-aes - fix compiler error when VERBOSE_DEBUG is defined
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 29 Sep 2016 16:46:57 +0000 (18:46 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2016 03:03:39 +0000 (11:03 +0800)
This patch fixes a compiler error when VERBOSE_DEBUG is defined. Indeed,
in atmel_aes_write(), the 3rd argument of atmel_aes_reg_name() was
missing.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Reported-by: Levent Demir <levent.demir@inria.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c

index e3d40a8dfffbc35259f3d2342d6343da343b0521..1d9e7bd3f3778fdc970b7622be7eaecfa71ef51f 100644 (file)
@@ -317,7 +317,7 @@ static inline void atmel_aes_write(struct atmel_aes_dev *dd,
                char tmp[16];
 
                dev_vdbg(dd->dev, "write 0x%08x into %s\n", value,
-                        atmel_aes_reg_name(offset, tmp));
+                        atmel_aes_reg_name(offset, tmp, sizeof(tmp)));
        }
 #endif /* VERBOSE_DEBUG */