From a8e98ad9ce209af0aba35ce26ec9200761b397df Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 3 May 2012 19:28:42 -0500 Subject: Fix remaining string format errors --- libk9copy/k9cellcopylist.cpp | 6 +++--- libk9copy/k9dvdauthor.cpp | 4 ++-- libk9copy/k9ifo2.cpp | 2 +- libk9copy/k9mp4enc.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libk9copy') diff --git a/libk9copy/k9cellcopylist.cpp b/libk9copy/k9cellcopylist.cpp index 31e85a3..fe880ac 100644 --- a/libk9copy/k9cellcopylist.cpp +++ b/libk9copy/k9cellcopylist.cpp @@ -298,7 +298,7 @@ double k9CellCopyList::getMinFactor(bool _withMenus) { double minFactor=(fforced-m_frcinbytes) /(MaxSize- (totalSize +m_outbytes) - m_frcoutbytes) ; tqDebug("%s", (TQString("minfactor(%1)=(fforced(%2) -m_frinbytes(%3))/(MacSize(%4)-totalSize(%5)-m_outbytes(%6) - m_frcoutbytes(%7))").arg(minFactor).arg(fforced).arg(m_frcinbytes).arg(MaxSize).arg(totalSize).arg(m_outbytes).arg(m_frcoutbytes)).ascii()); - + if (minFactor<1) minFactor=1; return minFactor; @@ -347,7 +347,7 @@ double k9CellCopyList::getfactor(bool _withMenus,bool _streams) { if (dvdSize2 <0) { factor=2.5; - //tqDebug(TQString("dvdSize (%1)- _outbytes(%2) - fforcedsh(%3)=%4").arg(dvdSize).arg(m_outbytes).arg(fforcedsh).arg(dvdSize2)); + //tqDebug("%s", (TQString("dvdSize (%1)- _outbytes(%2) - fforcedsh(%3)=%4").arg(dvdSize).arg(m_outbytes).arg(fforcedsh).arg(dvdSize2).ascii())); } else { factor=(totalSize +menuSize - fforced -m_inbytes)/ dvdSize2 ; @@ -361,7 +361,7 @@ double k9CellCopyList::getfactor(bool _withMenus,bool _streams) { uint64_t i=m_inbytes; //if (o==0) // o=1; - //tqDebug(TQString("factor : %1 realise : %2").arg(factor).arg((double)i/(double)o)); + //tqDebug("%s", (TQString("factor : %1 realise : %2").arg(factor).arg((double)i/(double)o).ascii())); if (factor<=1) factor=1; diff --git a/libk9copy/k9dvdauthor.cpp b/libk9copy/k9dvdauthor.cpp index 3676109..256cf53 100755 --- a/libk9copy/k9dvdauthor.cpp +++ b/libk9copy/k9dvdauthor.cpp @@ -505,7 +505,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { // m_copied+=totalBytes - m_lastPos; m_copied=totalBytes; m_lastPos=totalBytes; - //tqDebug(TQString("copied : %1 totalSize : %2").arg(m_copied).arg(m_totalSize*512)); + //tqDebug("%s", (TQString("copied : %1 totalSize : %2").arg(m_copied).arg(m_totalSize*512).ascii()); m_percent=(float)m_copied / (float)(m_totalSize/DVD_VIDEO_LB_LEN ); @@ -526,7 +526,7 @@ void k9DVDAuthor::DVDAuthorStderr(KProcess *proc, char *buffer, int buflen ) { } /* else { if (!m_stderr.startsWith("libdvdread") && m_stderr.startsWith("libdvdnav")) - tqDebug(m_stderr); + tqDebug("%s", m_stderr.ascii()); } */ int end; diff --git a/libk9copy/k9ifo2.cpp b/libk9copy/k9ifo2.cpp index 57643c4..8c73213 100644 --- a/libk9copy/k9ifo2.cpp +++ b/libk9copy/k9ifo2.cpp @@ -870,7 +870,7 @@ void k9Ifo2::checkBuffer(TQString lib,uchar* _buffer) { if (memcmp(bufCopy,_buffer,bufCopySize)!=0) { TQString c; c="Buffer de sortie altéré: " +lib; - tqDebug(c.latin1()); + tqDebug("%s", c.latin1()); } } diff --git a/libk9copy/k9mp4enc.cpp b/libk9copy/k9mp4enc.cpp index e29f206..0f4aaca 100644 --- a/libk9copy/k9mp4enc.cpp +++ b/libk9copy/k9mp4enc.cpp @@ -392,7 +392,7 @@ void k9MP4Enc::execute ( k9DVDTitle *_title ) TQCString str=* ( m_process->args().at ( i ) ); s +=TQString ( str ) +" "; } - tqDebug ( s ); + tqDebug ( "%s", s.ascii() ); time->start(); m_timer3.start(); connect ( m_process, TQT_SIGNAL ( receivedStdout ( KProcess *, char *, int ) ),this, TQT_SLOT ( getStdout ( KProcess *, char *, int ) ) ); -- cgit v1.2.1