Changeset 5837:96349d1c8634 in roaraudio
- Timestamp:
- 01/06/13 23:33:14 (10 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r5836 r5837 9 9 * Added half of the support for AppSched Triggers 10 10 ABOUT, HELP and PREFERENCES. 11 * Avoid %llX on win32 (Closes: #271) 11 12 12 13 v. 1.0beta8 - Mon Dec 10 2012 12:42 CET -
include/roaraudio/targethacks.h
r5823 r5837 77 77 #endif 78 78 79 // funny printf() hacks: 80 #ifdef ROAR_TARGET_WIN32 81 #define LIBROAR__longlong long 82 #define LIBROAR__ll "l" 83 #else 84 #define LIBROAR__longlong long long 85 #define LIBROAR__ll "ll" 86 #endif 87 79 88 #endif 80 89 -
libroar/hash.c
r5823 r5837 298 298 break; 299 299 } 300 snprintf(out, outlen-1, "% lli",tmp.llsi);300 snprintf(out, outlen-1, "%" LIBROAR__ll "i", (LIBROAR__longlong int)tmp.llsi); 301 301 break; 302 302 default: -
libroar/libroar.c
r5823 r5837 123 123 return 0; 124 124 #else 125 ROAR_ERR("roar_usleep(t=% llu): can not sleep: not implemented", (longlong unsigned int)t);125 ROAR_ERR("roar_usleep(t=%" LIBROAR__ll "u): can not sleep: not implemented", (LIBROAR__longlong unsigned int)t); 126 126 roar_strap(ROAR_TRAP_GROUP_LIBROAR, "usleep.not-implemented"); 127 127 roar_err_set(ROAR_ERROR_NOSYS); -
plugins/roard/protocol-gopher.c
r5823 r5837 114 114 "Server description: %s\r\n" 115 115 "\r\n" 116 "Counters current: % llu clients, %llu streams\r\n"117 "Counters sum: % llu clients, %llu streams\r\n",116 "Counters current: %" LIBROAR__ll "u clients, %" LIBROAR__ll "u streams\r\n" 117 "Counters sum: %" LIBROAR__ll "u clients, %" LIBROAR__ll "u streams\r\n", 118 118 pluginpara->appname == NULL ? "***unknown***" : pluginpara->appname, 119 119 pluginpara->abiversion == NULL ? "***unknown***" : pluginpara->abiversion, 120 120 g_config->location, 121 121 g_config->description, 122 ( longlong unsigned int)g_counters.cur.clients,123 ( longlong unsigned int)g_counters.cur.streams,124 ( longlong unsigned int)g_counters.sum.clients,125 ( longlong unsigned int)g_counters.sum.streams122 (LIBROAR__longlong unsigned int)g_counters.cur.clients, 123 (LIBROAR__longlong unsigned int)g_counters.cur.streams, 124 (LIBROAR__longlong unsigned int)g_counters.sum.clients, 125 (LIBROAR__longlong unsigned int)g_counters.sum.streams 126 126 ); 127 127 -
roarclients/roarctl.c
r5823 r5837 340 340 341 341 if ( g_verbose ) { 342 printf("Server time : %s%s%s% llu.%06llu [+%llu/2^64] sec\n",342 printf("Server time : %s%s%s%" LIBROAR__ll "u.%06" LIBROAR__ll "u [+%" LIBROAR__ll "u/2^64] sec\n", 343 343 #ifdef ROAR_HAVE_CTIME_R 344 344 "\"", … … 348 348 "", "", "", 349 349 #endif 350 ( longlong unsigned int)time.t_sec,351 ( longlong unsigned int) time.t_ssec / 18446744073709LLU,352 ( longlong unsigned int) time.t_ssec);350 (LIBROAR__longlong unsigned int)time.t_sec, 351 (LIBROAR__longlong unsigned int) time.t_ssec / 18446744073709LLU, 352 (LIBROAR__longlong unsigned int) time.t_ssec); 353 353 } else { 354 354 if ( time.c_freq == 1000000000LL && time.t_ssec == 0 ) { 355 printf("Server time : %s%s%s% llu sec\n",355 printf("Server time : %s%s%s%" LIBROAR__ll "u sec\n", 356 356 #ifdef ROAR_HAVE_CTIME_R 357 357 "\"", … … 361 361 "", "", "", 362 362 #endif 363 ( longlong unsigned int)time.t_sec);363 (LIBROAR__longlong unsigned int)time.t_sec); 364 364 } else { 365 printf("Server time : %s%s%s% llu.%06llu sec\n",365 printf("Server time : %s%s%s%" LIBROAR__ll "u.%06" LIBROAR__ll"u sec\n", 366 366 #ifdef ROAR_HAVE_CTIME_R 367 367 "\"", … … 371 371 "", "", "", 372 372 #endif 373 ( longlong unsigned int)time.t_sec,374 ( longlong unsigned int) time.t_ssec / 18446744073709LLU);373 (LIBROAR__longlong unsigned int)time.t_sec, 374 (LIBROAR__longlong unsigned int) time.t_ssec / 18446744073709LLU); 375 375 } 376 376 } … … 379 379 if ( time.c_drift ) { 380 380 #ifdef ROAR_HAVE_LIBM 381 printf("Server clock drift : % llu:2^64 (~10^%f)\n",382 ( longlong unsigned int)time.c_drift, logf((float)time.c_drift)/2.302585f);381 printf("Server clock drift : %" LIBROAR__ll "u:2^64 (~10^%f)\n", 382 (LIBROAR__longlong unsigned int)time.c_drift, logf((float)time.c_drift)/2.302585f); 383 383 #else 384 printf("Server clock drift : % llu:2^64\n",385 ( longlong unsigned int)time.c_drift);384 printf("Server clock drift : %" LIBROAR__ll "u:2^64\n", 385 (LIBROAR__longlong unsigned int)time.c_drift); 386 386 #endif 387 387 } … … 1193 1193 1194 1194 for (i = 0; i < ret; i++) { 1195 printf("profile % lli:\n", (longlong signed int)i);1195 printf("profile %" LIBROAR__ll "i:\n", (LIBROAR__longlong signed int)i); 1196 1196 show_aiprofile(list[i]); 1197 1197 } -
roard/emul_rsound.c
r5823 r5837 284 284 ptr /= 8; // bits -> bytes 285 285 286 i = snprintf(msg.data+msg.datalen, EMUL_RSOUND_MSG_DATA_LEN - msg.datalen, " % lld", (longlong int)ptr);286 i = snprintf(msg.data+msg.datalen, EMUL_RSOUND_MSG_DATA_LEN - msg.datalen, " %" LIBROAR__ll "d", (LIBROAR__longlong int)ptr); 287 287 288 288 msg.datalen += i; -
roard/roard.c
r5823 r5837 341 341 342 342 #define _pmsg(format, args...) roar_debug_msg(type, __LINE__, __FILE__, ROAR_DBG_PREFIX, format, ## args) 343 #define _pmsgc(group, counter, name) _pmsg(" Counter %-10s: % llu", (name), (longlong unsigned int)(counters->group.counter))343 #define _pmsgc(group, counter, name) _pmsg(" Counter %-10s: %" LIBROAR__ll "u", (name), (LIBROAR__longlong unsigned int)(counters->group.counter)) 344 344 void counters_print(int type, int force) { 345 345 struct counters * counters = counters_getptr();
Note: See TracChangeset
for help on using the changeset viewer.