Search Linux Wireless

[PATCH 04/10] qca-swiss-army-knife: reformat INI_PRINT_* macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Keep the length of the macro lines under 80 character.

Signed-off-by: Gabor Juhos <juhosg@xxxxxxxxxxx>
---
 tools/initvals/initvals.c |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/tools/initvals/initvals.c b/tools/initvals/initvals.c
index d3740da..4205b08 100644
--- a/tools/initvals/initvals.c
+++ b/tools/initvals/initvals.c
@@ -297,15 +297,19 @@ typedef long long unsigned int u64;
 	if (check) { \
 		char *sha1sum; \
 		sha1sum = ath9k_hw_check_initval((const u32 *) &_array,\
-						ARRAY_SIZE(_array), ARRAY_SIZE((_array)[0])); \
+						ARRAY_SIZE(_array), \
+						ARRAY_SIZE((_array)[0])); \
 		printf("%s        "#_array"\n", sha1sum); \
 	} else { \
-		if (sizeof(_ref) == sizeof(_array) && !memcmp(&_ref, &_array, sizeof(_ref))) { \
+		if (sizeof(_ref) == sizeof(_array) && \
+		    !memcmp(&_ref, &_array, sizeof(_ref))) { \
 			printf("#define " #_array " " #_ref "\n\n"); \
 			break; \
 		} \
 		ath9k_hw_print_initval(#_array, (const u32 *) _array, \
-				       ARRAY_SIZE(_array), ARRAY_SIZE((_array)[0]), false); \
+				       ARRAY_SIZE(_array), \
+				       ARRAY_SIZE((_array)[0]), \
+				       false); \
 	} \
     } while (0)
 
@@ -313,11 +317,14 @@ typedef long long unsigned int u64;
 	if (check) { \
 		char *sha1sum; \
 		sha1sum = ath9k_hw_check_initval((const u32 *) &_array,\
-						ARRAY_SIZE(_array), ARRAY_SIZE((_array)[0])); \
+						 ARRAY_SIZE(_array), \
+						 ARRAY_SIZE((_array)[0])); \
 		printf("%s        "#_array"\n", sha1sum); \
 	} else { \
 		ath9k_hw_print_initval(#_array, (const u32 *) _array, \
-				       ARRAY_SIZE(_array), ARRAY_SIZE((_array)[0]), false); \
+				       ARRAY_SIZE(_array), \
+				       ARRAY_SIZE((_array)[0]), \
+				       false); \
 	} \
     } while (0)
 
-- 
1.7.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux