Changeset 5837:96349d1c8634 in roaraudio for roarclients


Ignore:
Timestamp:
01/06/13 23:33:14 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Avoid %llX on win32 (Closes: #271)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r5823 r5837  
    340340 
    341341 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", 
    343343#ifdef ROAR_HAVE_CTIME_R 
    344344         "\"", 
     
    348348         "", "", "", 
    349349#endif 
    350          (long long unsigned int)time.t_sec, 
    351          (long long unsigned int) time.t_ssec / 18446744073709LLU, 
    352          (long long 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); 
    353353 } else { 
    354354  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", 
    356356#ifdef ROAR_HAVE_CTIME_R 
    357357         "\"", 
     
    361361         "", "", "", 
    362362#endif 
    363           (long long unsigned int)time.t_sec); 
     363          (LIBROAR__longlong unsigned int)time.t_sec); 
    364364  } 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", 
    366366#ifdef ROAR_HAVE_CTIME_R 
    367367         "\"", 
     
    371371         "", "", "", 
    372372#endif 
    373           (long long unsigned int)time.t_sec, 
    374           (long long unsigned int) time.t_ssec / 18446744073709LLU); 
     373          (LIBROAR__longlong unsigned int)time.t_sec, 
     374          (LIBROAR__longlong unsigned int) time.t_ssec / 18446744073709LLU); 
    375375  } 
    376376 } 
     
    379379 if ( time.c_drift ) { 
    380380#ifdef ROAR_HAVE_LIBM 
    381   printf("Server clock drift    : %llu:2^64 (~10^%f)\n", 
    382          (long long 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); 
    383383#else 
    384   printf("Server clock drift    : %llu:2^64\n", 
    385          (long long unsigned int)time.c_drift); 
     384  printf("Server clock drift    : %" LIBROAR__ll "u:2^64\n", 
     385         (LIBROAR__longlong unsigned int)time.c_drift); 
    386386#endif 
    387387 } 
     
    11931193 
    11941194 for (i = 0; i < ret; i++) { 
    1195   printf("profile %lli:\n", (long long signed int)i); 
     1195  printf("profile %" LIBROAR__ll "i:\n", (LIBROAR__longlong signed int)i); 
    11961196  show_aiprofile(list[i]); 
    11971197 } 
Note: See TracChangeset for help on using the changeset viewer.