staging: lustre: obdclass: simplify class_uuid_unparse
authorVasiliy Korchagin <vasiliy.korchagin@gmail.com>
Wed, 15 Jul 2015 00:40:40 +0000 (00:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2015 17:12:45 +0000 (10:12 -0700)
commit4bdc190a929c6f99732a9a0ff03dba7b0137d4bd
treebd62e9f6d59d33db9511c07dee7bf0fb848556f9
parent6f14cc18f8dd5d1b05ae6583361e08222381ca84
staging: lustre: obdclass: simplify class_uuid_unparse

This patch simplifies uuid unparse logic by using sprintf "%pU" extension.
And eliminates the code with a coding style error:

ERROR: Macros with complex values should be enclosed in parentheses
+#define CONSUME(val, ptr) (val) = consume(sizeof(val), (ptr))

Signed-off-by: Vasiliy Korchagin <vasiliy.korchagin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/uuid.c