diff --git a/bin/xbps-bin/main.c b/bin/xbps-bin/main.c index 2e0d12f5..b8888572 100644 --- a/bin/xbps-bin/main.c +++ b/bin/xbps-bin/main.c @@ -240,8 +240,8 @@ main(int argc, char **argv) else if (strcmp(argv[1], "half-removed") == 0) lpc.state = XBPS_PKG_STATE_HALF_REMOVED; else { - fprintf(stderr, - "E: invalid state `%s'. Accepted values: " + xbps_error_printf( + "invalid state `%s'. Accepted values: " "half-removed, unpacked, half-unpacked, " "installed [default]\n", argv[1]); rv = -1; diff --git a/bin/xbps-repo/main.c b/bin/xbps-repo/main.c index bdc9dae6..b7e86069 100644 --- a/bin/xbps-repo/main.c +++ b/bin/xbps-repo/main.c @@ -199,7 +199,7 @@ main(int argc, char **argv) rv = show_pkg_info_from_repolist(argv[1], option); if (rv == ENOENT) { - printf("Unable to locate package " + xbps_error_printf("Unable to locate package " "`%s' in repository pool.\n", argv[1]); } else if (rv == ENOTSUP) { xbps_error_printf("xbps-repo: no repositories " @@ -215,7 +215,7 @@ main(int argc, char **argv) rv = show_pkg_deps_from_repolist(argv[1]); if (rv == ENOENT) { - printf("Unable to locate package " + xbps_error_printf("Unable to locate package " "`%s' in repository pool.\n", argv[1]); } else if (rv == ENOTSUP) { xbps_error_printf("xbps-repo: no repositories " @@ -236,7 +236,7 @@ main(int argc, char **argv) xbps_error_printf("xbps-repo: no repositories " "currently registered!\n"); } else if (errno == ENOENT) { - printf("Unable to locate package `%s' " + xbps_error_printf("Unable to locate package `%s' " "in repository pool.\n", argv[1]); } else { xbps_error_printf("xbps-repo: unexpected "