diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2017-10-13 13:17:51 +0200 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2017-10-29 23:41:00 +0100 |
commit | fce2664f1965857077932fb6e0b50582044aa89d (patch) | |
tree | b34435f61e72eabdfd727b58c2b69c3c19aca32a /package/kernel/ar7-atm/patches-D7.05.01.00/220-3.10-update_proc_code.patch | |
parent | 889b21f95414dcff942cb5f72d764d876b68ace2 (diff) | |
download | upstream-fce2664f1965857077932fb6e0b50582044aa89d.tar.gz upstream-fce2664f1965857077932fb6e0b50582044aa89d.tar.bz2 upstream-fce2664f1965857077932fb6e0b50582044aa89d.zip |
ar7-atm: fixup proc fixes
They were incomplete, so fix them to properly update the function signatures
to what is expected.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'package/kernel/ar7-atm/patches-D7.05.01.00/220-3.10-update_proc_code.patch')
-rw-r--r-- | package/kernel/ar7-atm/patches-D7.05.01.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.05.01.00/220-3.10-update_proc_code.patch b/package/kernel/ar7-atm/patches-D7.05.01.00/220-3.10-update_proc_code.patch index 1d3d7583be..ef1ddd833c 100644 --- a/package/kernel/ar7-atm/patches-D7.05.01.00/220-3.10-update_proc_code.patch +++ b/package/kernel/ar7-atm/patches-D7.05.01.00/220-3.10-update_proc_code.patch @@ -3023,7 +3023,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org> k=0; for(j=0;j<4;j++) { -@@ -1620,26 +1640,16 @@ int tn7sar_proc_sar_stat(char* buf, char +@@ -1620,26 +1640,18 @@ int tn7sar_proc_sar_stat(char* buf, char { if((char *)*pSarStat == NULL) break; @@ -3034,7 +3034,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) - { @@ -3042,7 +3043,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) @@ -3054,7 +3056,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org> } } -@@ -1648,9 +1658,22 @@ int tn7sar_proc_sar_stat(char* buf, char +@@ -1648,9 +1660,22 @@ int tn7sar_proc_sar_stat(char* buf, char } } |