Author: remi
Date: 2008-07-01 09:43:17 +0200 (Tue, 01 Jul 2008)
New Revision: 1286
Modified:
software_suite_v2/middleware/tuxdriver/trunk/src/tux_hw_status.c
Log:
* Changed the condition to show the statuses headers report.
Modified: software_suite_v2/middleware/tuxdriver/trunk/src/tux_hw_status.c
===================================================================
--- software_suite_v2/middleware/tuxdriver/trunk/src/tux_hw_status.c
2008-07-01 07:38:51 UTC (rev 1285)
+++ software_suite_v2/middleware/tuxdriver/trunk/src/tux_hw_status.c
2008-07-01 07:43:17 UTC (rev 1286)
@@ -174,33 +174,29 @@
/* as there is only debug code in this for loop it might make sense
to have a guarding ifdef around the for loop to save a few cycles */
- for (i = 0; i < 16; i++)
+ if (p_count >= 15)
{
- if ((tux_hw_status_header_counter[i] > 1) && (p_count > 12))
- {
- log_debug("Frames counter (%d) :\n\t%s:[%d]\n\t%s:[%d]\n\
- \r\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\
- \r\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\
- \r\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n",
- p_count,
- tux_hw_status_id_to_str(0), tux_hw_status_header_counter[0],
- tux_hw_status_id_to_str(1), tux_hw_status_header_counter[1],
- tux_hw_status_id_to_str(2), tux_hw_status_header_counter[2],
- tux_hw_status_id_to_str(3), tux_hw_status_header_counter[3],
- tux_hw_status_id_to_str(4), tux_hw_status_header_counter[4],
- tux_hw_status_id_to_str(5), tux_hw_status_header_counter[5],
- tux_hw_status_id_to_str(6), tux_hw_status_header_counter[6],
- tux_hw_status_id_to_str(7), tux_hw_status_header_counter[7],
- tux_hw_status_id_to_str(8), tux_hw_status_header_counter[8],
- tux_hw_status_id_to_str(9), tux_hw_status_header_counter[9],
- tux_hw_status_id_to_str(10), tux_hw_status_header_counter[10],
- tux_hw_status_id_to_str(11), tux_hw_status_header_counter[11],
- tux_hw_status_id_to_str(12), tux_hw_status_header_counter[12],
- tux_hw_status_id_to_str(13), tux_hw_status_header_counter[13],
- tux_hw_status_id_to_str(14), tux_hw_status_header_counter[14],
- tux_hw_status_id_to_str(15), tux_hw_status_header_counter[15]);
- break;
- }
+ log_debug("Frames counter (%d) :\n\t%s:[%d]\n\t%s:[%d]\n\
+ \r\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\
+ \r\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\
+ \r\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n\t%s:[%d]\n",
+ p_count,
+ tux_hw_status_id_to_str(0), tux_hw_status_header_counter[0],
+ tux_hw_status_id_to_str(1), tux_hw_status_header_counter[1],
+ tux_hw_status_id_to_str(2), tux_hw_status_header_counter[2],
+ tux_hw_status_id_to_str(3), tux_hw_status_header_counter[3],
+ tux_hw_status_id_to_str(4), tux_hw_status_header_counter[4],
+ tux_hw_status_id_to_str(5), tux_hw_status_header_counter[5],
+ tux_hw_status_id_to_str(6), tux_hw_status_header_counter[6],
+ tux_hw_status_id_to_str(7), tux_hw_status_header_counter[7],
+ tux_hw_status_id_to_str(8), tux_hw_status_header_counter[8],
+ tux_hw_status_id_to_str(9), tux_hw_status_header_counter[9],
+ tux_hw_status_id_to_str(10), tux_hw_status_header_counter[10],
+ tux_hw_status_id_to_str(11), tux_hw_status_header_counter[11],
+ tux_hw_status_id_to_str(12), tux_hw_status_header_counter[12],
+ tux_hw_status_id_to_str(13), tux_hw_status_header_counter[13],
+ tux_hw_status_id_to_str(14), tux_hw_status_header_counter[14],
+ tux_hw_status_id_to_str(15), tux_hw_status_header_counter[15]);
}
// use memset instead ?
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn