Changeset 4101:42b7ee5d2f76 in roaraudio for roard/roard.c
- Timestamp:
- 07/25/10 16:56:11 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r4058 r4101 236 236 #endif 237 237 238 #define _pmsg(format, args...) roar_debug_msg(type, __LINE__, __FILE__, ROAR_DBG_PREFIX, format, ## args) 239 #define _pmsgc(group, counter, name) _pmsg(" Counter %-10s: %llu", (name), (long long unsigned int)counters_get(group, counter)) 240 void counters_print(int type, int force) { 241 if ( type != ROAR_DEBUG_TYPE_INFO || force || (ROAR_DBG_INFOVAR) >= ROAR_DBG_INFO_INFO ) { 242 _pmsg("--- Counter Listing ---"); 243 _pmsg(" Current:"); 244 _pmsgc(cur, clients, "Clients"); 245 _pmsgc(cur, streams, "Streams"); 246 _pmsg(" Total:"); 247 _pmsgc(sum, clients, "Clients"); 248 _pmsgc(sum, streams, "Streams"); 249 _pmsg("--- End of Counter Listing ---"); 250 } 251 } 252 #undef _pmsgc 253 #undef _pmsg 254 238 255 int restart_server (char * server, int terminate) { 239 256 struct roar_connection con; … … 1239 1256 memcpy(g_max_sa, g_sa, sizeof(max_sa)); 1240 1257 1258 counters_init(); 1259 1241 1260 g_config = &config; 1242 1261 … … 2219 2238 ROAR_INFO("Shuting down", ROAR_DBG_INFO_INFO); 2220 2239 2240 counters_print(ROAR_DEBUG_TYPE_INFO, 0); 2241 2221 2242 clean_quit_prep(); 2222 2243 // driver_close(drvinst, drvid);
Note: See TracChangeset
for help on using the changeset viewer.