From: Michael Gernoth Date: Wed, 5 Mar 2014 01:22:59 +0000 (+0100) Subject: fix error messages X-Git-Tag: v0.100~24 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/9dcbf6057d2b215085ca9a2bd20b2f19a6db139d?ds=sidebyside fix error messages --- diff --git a/flash-ota.c b/flash-ota.c index 71cb57e..9126768 100644 --- a/flash-ota.c +++ b/flash-ota.c @@ -234,7 +234,7 @@ int send_hm_message(struct ota_dev *dev, struct recv_data *rdata, uint8_t *msg) pfd = culfw_poll(dev->culfw, 1); if ((pfd < 0) && errno) { if (errno != ETIMEDOUT) { - perror("\n\nhmcfgusb_poll"); + perror("\n\nculfw_poll"); exit(EXIT_FAILURE); } } @@ -659,7 +659,7 @@ int main(int argc, char **argv) } if ((pfd < 0) && errno) { if (errno != ETIMEDOUT) { - perror("\n\nhmcfgusb_poll"); + perror("\n\npoll"); exit(EXIT_FAILURE); } }