Commit 96ff77f7 authored by Marek Belisko's avatar Marek Belisko Committed by Greg Kroah-Hartman

staging: ft1000: Fix coding style.

Signed-off-by: default avatarMarek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 85d47cff
...@@ -14,23 +14,19 @@ ...@@ -14,23 +14,19 @@
#define PUTX_TO_PAGE(len,page,message,size,var) \ #define PUTX_TO_PAGE(len,page,message,size,var) \
len += snprintf(page+len, PAGE_SIZE - len, message); \ len += snprintf(page+len, PAGE_SIZE - len, message); \
for(i = 0; i < (size - 1); i++) \ for (i = 0; i < (size - 1); i++) {\
{ \
len += snprintf(page+len, PAGE_SIZE - len, "%02x:", var[i]); \ len += snprintf(page+len, PAGE_SIZE - len, "%02x:", var[i]); \
} \ } \
len += snprintf(page+len, PAGE_SIZE - len, "%02x\n", var[i]) len += snprintf(page+len, PAGE_SIZE - len, "%02x\n", var[i])
#define PUTD_TO_PAGE(len,page,message,size,var) \ #define PUTD_TO_PAGE(len,page,message,size,var) \
len += snprintf(page+len, PAGE_SIZE - len, message); \ len += snprintf(page+len, PAGE_SIZE - len, message); \
for(i = 0; i < (size - 1); i++) \ for (i = 0; i < (size - 1); i++) {\
{ \
len += snprintf(page+len, PAGE_SIZE - len, "%d.", var[i]); \ len += snprintf(page+len, PAGE_SIZE - len, "%d.", var[i]); \
} \ } \
len += snprintf(page+len, PAGE_SIZE - len, "%d\n", var[i]) len += snprintf(page+len, PAGE_SIZE - len, "%d\n", var[i])
//#ifdef INIT_NET_NS //#ifdef INIT_NET_NS
#define FTNET_PROC init_net.proc_net #define FTNET_PROC init_net.proc_net
//#else //#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment