]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-aes - Add useful debug macros
authorJoel Fernandes <joelf@ti.com>
Sun, 18 Aug 2013 05:56:11 +0000 (00:56 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Aug 2013 11:27:58 +0000 (21:27 +1000)
commita806f0ecb50e03ca3b69a6c063f487bdb18efe83
treed2e453bc373918595111ccc2ef52c4ad17c12557
parent677c657fea92d97ff21215d809c2ff6bed671d71
crypto: omap-aes - Add useful debug macros

When DEBUG is enabled, these macros can be used to print variables in integer
and hex format, and clearly display which registers, offsets and values are
being read/written , including printing the names of the offsets and their values.

Using statement expression macros in read path as,
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c