]> sigrok.org Git - sigrok-qt.git/commitdiff
sr: Implement proper logging framework.
authorUwe Hermann <redacted>
Wed, 8 Feb 2012 21:04:13 +0000 (22:04 +0100)
committerUwe Hermann <redacted>
Fri, 10 Feb 2012 08:30:40 +0000 (09:30 +0100)
This is pretty much identical to the current libsigrokdecode API/framework.

mainwindow.cpp

index 5cc693c5826c4ca218ea91267ef635623b1edf64..a3aeb83f436a7fb9ffcc05c50dbb5f4b305eca94 100644 (file)
@@ -830,7 +830,7 @@ void MainWindow::on_actionQUICK_HACK_PD_TEST_triggered()
        int ret = file.open(QIODevice::ReadOnly);
        ret = file.read((char *)buf, N);
 
-       // sr_set_loglevel(0);
+       // sr_log_loglevel_set(0);
        // srd_log_loglevel_set(0);
 
        if (!(di = srd_instance_new("i2c", pd_opthash))) {