summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2010-02-03 14:55:46 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2010-02-03 14:55:46 +0000
commit3dc6735f00368c1ace2f63cb35c58f98d22586ba (patch)
tree696c3dc867f1fc0c1e92c0ec5f93540237e75513
parent1f71719679dbaa33f2e9203b3e9fa9de70d854e8 (diff)
downloadxine-lib-3dc6735f00368c1ace2f63cb35c58f98d22586ba.tar.gz
xine-lib-3dc6735f00368c1ace2f63cb35c58f98d22586ba.tar.bz2
Remove pointless output from stats logging; make the const variables static.
-rw-r--r--src/input/net_buf_ctrl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c
index bd0e5ce13..1d01911fd 100644
--- a/src/input/net_buf_ctrl.c
+++ b/src/input/net_buf_ctrl.c
@@ -118,10 +118,9 @@ void nbc_check_buffers (nbc_t *this) {
}
static void display_stats (nbc_t *this) {
- const char buffering[2][4] = {" ", "buf"};
- const char enabled[2][4] = {"off", "on "};
+ static const char buffering[2][4] = {" ", "buf"};
+ static const char enabled[2][4] = {"off", "on "};
- printf("bufing: %d, enb: %d\n", this->buffering, this->enabled);
printf("net_buf_ctrl: vid %3d%% %4.1fs %4" PRId64 "kbps %1d, "\
"aud %3d%% %4.1fs %4" PRId64 "kbps %1d, %s %s\r",
this->video_fifo_fill,