Revision 6b23f777 linux-user/strace.c

b/linux-user/strace.c
271 271
              abi_long arg4, abi_long arg5, abi_long arg6)
272 272
{
273 273
    int i;
274
    char *format="%s(%ld,%ld,%ld,%ld,%ld,%ld)";
274
    char *format="%s(" TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld "," TARGET_ABI_FMT_ld ")";
275 275

  
276 276
    gemu_log("%d ", getpid() );
277 277

  
......
280 280
            if( scnames[i].call != NULL ) {
281 281
                scnames[i].call(&scnames[i],arg1,arg2,arg3,arg4,arg5,arg6);
282 282
            } else {
283
                /* XXX: this format system is broken because it uses
284
                   host types and host pointers for strings */
283 285
                if( scnames[i].format != NULL )
284 286
                    format = scnames[i].format;
285 287
                gemu_log(format,scnames[i].name, arg1,arg2,arg3,arg4,arg5,arg6);

Also available in: Unified diff