Changeset 5630

Show
Ignore:
Timestamp:
08/03/12 19:33:59 (7 years ago)
Author:
cmatthew
Message:

Added code which shortens really long debugging status messages, since full buffers were being printed, and they could be up to 8k in length. Now messages printed to the screen are truncated to 128 characters.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/seattlelib/lind_server.mix

    r5542 r5630  
    286286        call = NOOP_CALL_NUM # continue on with eno_sys 
    287287    if TRACE: 
    288       strace_msg = [ "[lind_server][trace]", str(str(curr_comp()[SYSCALL][call]).split(" ")[1]), str(args), " = "] 
     288      strace_msg = [ "[lind_server][trace]", str(str(curr_comp()[SYSCALL][call]).split(" ")[1]), str(args)[:128], " = "] 
    289289 
    290290    # before_call = timer() 
     
    295295    finally: 
    296296      if TRACE: 
    297         strace_msg.append(str(response)) 
     297        strace_msg.append(str(response)[:128]) 
    298298        print ''.join(strace_msg) 
    299299    mycontext[LOCK].release()