Ticket #5228: 0001-Whitespace-only.patch

File 0001-Whitespace-only.patch, 4.0 KB (added by daniel.is.fischer, 2 years ago)

trailing whitespace

  • rts/Trace.c

    From 736630e6b715ccc346cdb1ff57f306a4a1a557fc Mon Sep 17 00:00:00 2001
    From: Daniel Fischer <daniel.is.fischer@googlemail.com>
    Date: Sun, 29 May 2011 20:52:03 +0200
    Subject: [PATCH 1/2] Whitespace only
    
    ---
     rts/Trace.c |   28 ++++++++++++++--------------
     1 files changed, 14 insertions(+), 14 deletions(-)
    
    diff --git a/rts/Trace.c b/rts/Trace.c
    index e472c5a..0918ed6 100644
    a b  
    158158#endif 
    159159 
    160160#ifdef DEBUG 
    161 static void traceSchedEvent_stderr (Capability *cap, EventTypeNum tag,  
    162                                     StgTSO *tso,  
     161static void traceSchedEvent_stderr (Capability *cap, EventTypeNum tag, 
     162                                    StgTSO *tso, 
    163163                                    StgWord info1 STG_UNUSED, 
    164164                                    StgWord info2 STG_UNUSED) 
    165165{ 
     
    168168    tracePreface(); 
    169169    switch (tag) { 
    170170    case EVENT_CREATE_THREAD:   // (cap, thread) 
    171         debugBelch("cap %d: created thread %lu\n",  
     171        debugBelch("cap %d: created thread %lu\n", 
    172172                   cap->no, (lnat)tso->id); 
    173173        break; 
    174174    case EVENT_RUN_THREAD:      //  (cap, thread) 
    175         debugBelch("cap %d: running thread %lu (%s)\n",  
     175        debugBelch("cap %d: running thread %lu (%s)\n", 
    176176                   cap->no, (lnat)tso->id, what_next_strs[tso->what_next]); 
    177177        break; 
    178178    case EVENT_THREAD_RUNNABLE: // (cap, thread) 
    179         debugBelch("cap %d: thread %lu appended to run queue\n",  
     179        debugBelch("cap %d: thread %lu appended to run queue\n", 
    180180                   cap->no, (lnat)tso->id); 
    181181        break; 
    182182    case EVENT_RUN_SPARK:       // (cap, thread) 
    183         debugBelch("cap %d: thread %lu running a spark\n",  
     183        debugBelch("cap %d: thread %lu running a spark\n", 
    184184                   cap->no, (lnat)tso->id); 
    185185        break; 
    186186    case EVENT_CREATE_SPARK_THREAD: // (cap, spark_thread) 
    187         debugBelch("cap %d: creating spark thread %lu\n",  
     187        debugBelch("cap %d: creating spark thread %lu\n", 
    188188                   cap->no, (long)info1); 
    189189        break; 
    190190    case EVENT_MIGRATE_THREAD:  // (cap, thread, new_cap) 
    191         debugBelch("cap %d: thread %lu migrating to cap %d\n",  
     191        debugBelch("cap %d: thread %lu migrating to cap %d\n", 
    192192                   cap->no, (lnat)tso->id, (int)info1); 
    193193        break; 
    194194    case EVENT_STEAL_SPARK:     // (cap, thread, victim_cap) 
    195         debugBelch("cap %d: thread %lu stealing a spark from cap %d\n",  
     195        debugBelch("cap %d: thread %lu stealing a spark from cap %d\n", 
    196196                   cap->no, (lnat)tso->id, (int)info1); 
    197197        break; 
    198198    case EVENT_THREAD_WAKEUP:   // (cap, thread, info1_cap) 
    199         debugBelch("cap %d: waking up thread %lu on cap %d\n",  
     199        debugBelch("cap %d: waking up thread %lu on cap %d\n", 
    200200                   cap->no, (lnat)tso->id, (int)info1); 
    201201        break; 
    202          
     202 
    203203    case EVENT_STOP_THREAD:     // (cap, thread, status) 
    204204        if (info1 == 6 + BlockedOnBlackHole) { 
    205205            debugBelch("cap %d: thread %lu stopped (blocked on black hole owned by thread %lu)\n", 
     
    234234        debugBelch("cap %d: GC done\n", cap->no); 
    235235        break; 
    236236    default: 
    237         debugBelch("cap %d: thread %lu: event %d\n\n",  
     237        debugBelch("cap %d: thread %lu: event %d\n\n", 
    238238                   cap->no, (lnat)tso->id, tag); 
    239239        break; 
    240240    } 
     
    243243} 
    244244#endif 
    245245 
    246 void traceSchedEvent_ (Capability *cap, EventTypeNum tag,  
     246void traceSchedEvent_ (Capability *cap, EventTypeNum tag, 
    247247                       StgTSO *tso, StgWord info1, StgWord info2) 
    248248{ 
    249249#ifdef DEBUG 
     
    363363{ 
    364364    va_list ap; 
    365365    va_start(ap,msg); 
    366      
     366 
    367367#ifdef DEBUG 
    368368    if (RtsFlags.TraceFlags.tracing == TRACE_STDERR) { 
    369369        traceCap_stderr(cap, msg, ap);