libx52/utils/cli
nirenjan 16b4ad693b Fix error reporting in x52cli
Prior to this change, x52cli assumed that the return code from the
handler was a standard error code, but negated. This is an incorrect
assumption as the libx52 API returns a `libx52_error_code` enum, which
is a positive integer.

This change fixes the printing of the error message to call
`libx52_strerror`, which translates it correctly. It also adds error
printing to any failure of `libx52_init`, as well as explicitly
specifying `LIBX52_SUCCESS` instead of `0`.

Addresses #19.
2020-05-18 14:38:49 -07:00
..
Makefile.am Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52_cli.c Fix error reporting in x52cli 2020-05-18 14:38:49 -07:00
x52cli.man Fix formatting for x52cli manual 2017-08-16 00:05:05 -07:00