Changeset 996

Show
Ignore:
Timestamp:
05/19/06 21:39:55 (3 years ago)
Author:
dgollub
Message:

removed/replaced printfs with osync_trace()s

Location:
plugins/kdepim/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • plugins/kdepim/src/kcal.cpp

    r703 r996  
    188188        case CHANGE_MODIFIED: 
    189189        { 
    190                 printf("Adding\n"); 
    191190            KCal::ICalFormat format; 
    192191 
     
    195194             */ 
    196195              
    197                 printf("Adding1\n"); 
    198196            KCal::CalendarLocal cal(QString::fromLatin1( "UTC" )); 
    199197            QString data = QString::fromUtf8(osync_change_get_data(chg), osync_change_get_datasize(chg)); 
     
    203201            } 
    204202 
    205                 printf("Adding2 %p\n", calendar); 
    206203            /*FIXME: The event/to-do will be overwritten. But I can't differentiate 
    207204             * between a field being removed and a missing field because 
     
    219216             * We iterate over the list, but it should have only one event. 
    220217             */ 
    221                 printf("Adding3\n"); 
    222218            KCal::Incidence::List evts = cal.incidences(); 
    223219            for (KCal::Incidence::List::ConstIterator i = evts.begin(); i != evts.end(); i++) { 
  • plugins/kdepim/src/knotes.cpp

    r692 r996  
    105105static QString strip_html(QString input) 
    106106{ 
    107         printf("input is %s\n", (const char*)input.local8Bit()); 
     107        osync_trace(TRACE_INTERNAL, "input is %s\n", (const char*)input.local8Bit()); 
    108108        QString output = NULL; 
    109109        unsigned int i = 0; 
     
    120120                        output += input[i]; 
    121121        } 
    122         printf("output is %s\n", (const char*)output.stripWhiteSpace().local8Bit()); 
     122        osync_trace(TRACE_INTERNAL, "output is %s\n", (const char*)output.stripWhiteSpace().local8Bit()); 
    123123        return output.stripWhiteSpace(); 
    124124} 
     
    145145                osync_debug("knotes", 4, "Note key: %s", (const char*)i.key().local8Bit()); 
    146146        osync_debug("knotes", 4, "Note summary: %s", (const char*)i.data().local8Bit()); 
    147                 printf("reporting notes %s\n", (const char*)i.key().local8Bit()); 
     147                osync_trace(TRACE_INTERNAL, "reporting notes %s\n", (const char*)i.key().local8Bit()); 
    148148                 
    149149        QString uid = i.key(); 
     
    227227        } 
    228228 
    229         printf("Getting note %s and %s\n", osync_change_get_printable(chg), osxml_find_node(root, "Summary")); 
     229        osync_trace(TRACE_INTERNAL, "Getting note %s and %s\n", osync_change_get_printable(chg), osxml_find_node(root, "Summary")); 
    230230        QString summary = QString(osxml_find_node(root, "Summary")); 
    231231        QString body = osxml_find_node(root, "Body"); 
     
    234234        switch (type) { 
    235235            case CHANGE_ADDED: 
    236                 printf("addding new \"%s\" and \"%s\"\n", (const char*)summary.local8Bit(), (const char*)body.local8Bit()); 
     236                osync_trace(TRACE_INTERNAL, "addding new \"%s\" and \"%s\"\n", (const char*)summary.local8Bit(), (const char*)body.local8Bit()); 
    237237                uid = kn_iface->newNote(summary, body); 
    238238                                if (kn_iface->status() != DCOPStub::CallSucceeded) {