From: Uwe Hermann Date: Wed, 8 Feb 2012 21:04:13 +0000 (+0100) Subject: sr: Implement proper logging framework. X-Git-Tag: sigrok-cli-0.3.0~41 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bed505259f5027000028d5ee69a93f1b6231eb6d;p=sigrok-cli.git sr: Implement proper logging framework. This is pretty much identical to the current libsigrokdecode API/framework. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index 15bad14..50fec39 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -986,8 +986,8 @@ int main(int argc, char **argv) } /* Set the loglevel (amount of messages to output) for libsigrok. */ - if (sr_set_loglevel(opt_loglevel) != SR_OK) { - fprintf(stderr, "cli: %s: sr_set_loglevel(%d) failed\n", + if (sr_log_loglevel_set(opt_loglevel) != SR_OK) { + fprintf(stderr, "cli: %s: sr_log_loglevel_set(%d) failed\n", __func__, opt_loglevel); return 1; }