]> sigrok.org Git - sigrok-cli.git/commitdiff
srd: More consistent log related function names.
authorUwe Hermann <redacted>
Wed, 8 Feb 2012 18:52:43 +0000 (19:52 +0100)
committerUwe Hermann <redacted>
Fri, 10 Feb 2012 08:30:40 +0000 (09:30 +0100)
Also, fix typos, constify some parameters, add more Doxygen comments.

sigrok-cli.c

index a13caad4ca6a072f5b932d5f01f3e134c146b78c..15bad14f7f16d865e1589aa2ff22b178c7173223 100644 (file)
@@ -993,8 +993,8 @@ int main(int argc, char **argv)
        }
 
        /* Set the loglevel (amount of messages to output) for libsigrokdecode. */
-       if (srd_set_loglevel(opt_loglevel) != SRD_OK) {
-               fprintf(stderr, "cli: %s: srd_set_loglevel(%d) failed\n",
+       if (srd_log_loglevel_set(opt_loglevel) != SRD_OK) {
+               fprintf(stderr, "cli: %s: srd_log_loglevel_set(%d) failed\n",
                        __func__, opt_loglevel);
                return 1;
        }