Comment 57 for bug 1713485

Revision history for this message
In , Cristian Aravena Romero (caravena) wrote :

In reply to Thomas Schmitt from comment #52)

[...]

> > What log?
>
> I can only guess where qDebug() messages show up.
> The web talks of "application output". An example on
> http://www.qtcentre.org/threads/19534-redirect-qDebug%28%29-to-file
> indicates that it is normal "standard output"i, i.e. the start terminal.
>
> So try in a shell terminal window
>
> k3b | tee -i /tmp/k3b_log_file
>
> and after the run look into file /tmp/k3b_log_file .

Ok!

> > Are the changes correct?
>
> They are half of what we need: The "found" part.
> You also need to print the "wanted" info. (Something between them does
> not match. I just have no idea yet what it could be. Need to see.)
>
> So add also
>
> qDebug() << "Bug 381074: wanted: "
> << __PRETTY_FUNCTION__ << d->wantedMediaType
> << d->wantedMediaState << d->wantedMinMediaSize.lba();
>
> directly before or after the printing of "found".

ok!

-------------------This right?----------------------------------
#ifdef K3B_DEBUG
    qDebug() << "Bug 381074: found: "
             << __PRETTY_FUNCTION__ << medium.diskInfo().mediaType()
             << medium.diskInfo().diskState()
             << medium.actuallyRemainingSize().lba();

    qDebug() << "Bug 381074: wanted: "
             << __PRETTY_FUNCTION__ << d->wantedMediaType
             << d->wantedMediaState << d->wantedMinMediaSize.lba();
#endif
-----------------------------------------------------------------

Regards,
--
Cristian