diff options
Diffstat (limited to 'package/kernel/ar7-atm/patches-D7.04.03.00/220-3.10-update_proc_code.patch')
-rw-r--r-- | package/kernel/ar7-atm/patches-D7.04.03.00/220-3.10-update_proc_code.patch | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/package/kernel/ar7-atm/patches-D7.04.03.00/220-3.10-update_proc_code.patch b/package/kernel/ar7-atm/patches-D7.04.03.00/220-3.10-update_proc_code.patch index 6026d30..7a2bbe8 100644 --- a/package/kernel/ar7-atm/patches-D7.04.03.00/220-3.10-update_proc_code.patch +++ b/package/kernel/ar7-atm/patches-D7.04.03.00/220-3.10-update_proc_code.patch @@ -2886,7 +2886,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org> k=0; for(j=0;j<4;j++) { -@@ -1468,26 +1488,16 @@ int tn7sar_proc_sar_stat(char* buf, char +@@ -1468,26 +1488,18 @@ int tn7sar_proc_sar_stat(char* buf, char { if((char *)*pSarStat == NULL) break; @@ -2897,7 +2897,8 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org> - k += dBytes; - } + -+ k += seq_printf(m, "%s: ",(char *) *pSarStat); ++ seq_printf(m, "%s: ",(char *) *pSarStat); ++ k += strlen((char *) *pSarStat) + strlen(": "); pSarStat++; - if(len<=limit) - { @@ -2905,7 +2906,8 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org> - len += dBytes; - k += dBytes; - } -+ k += seq_printf(m, "%s; \n",(char *) *pSarStat); ++ seq_printf(m, "%s; \n",(char *) *pSarStat); ++ k += strlen((char *) *pSarStat) + strlen("; \n"); pSarStat++; if(k > 60) @@ -2917,7 +2919,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org> } } -@@ -1496,9 +1506,22 @@ int tn7sar_proc_sar_stat(char* buf, char +@@ -1496,9 +1508,22 @@ int tn7sar_proc_sar_stat(char* buf, char } } |