]> git.zerfleddert.de Git - hmcfgusb/commitdiff
fix error messages
authorMichael Gernoth <michael@gernoth.net>
Wed, 5 Mar 2014 01:22:59 +0000 (02:22 +0100)
committerMichael Gernoth <michael@gernoth.net>
Wed, 5 Mar 2014 01:22:59 +0000 (02:22 +0100)
flash-ota.c

index 71cb57e548bbe35970a571ba516185f6291f6925..91267680f31da89f052c5513b4ff7ffd96b2e389 100644 (file)
@@ -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) {
                                                pfd = culfw_poll(dev->culfw, 1);
                                                if ((pfd < 0) && errno) {
                                                        if (errno != ETIMEDOUT) {
-                                                               perror("\n\nhmcfgusb_poll");
+                                                               perror("\n\nculfw_poll");
                                                                exit(EXIT_FAILURE);
                                                        }
                                                }
                                                                exit(EXIT_FAILURE);
                                                        }
                                                }
@@ -659,7 +659,7 @@ int main(int argc, char **argv)
                }
                if ((pfd < 0) && errno) {
                        if (errno != ETIMEDOUT) {
                }
                if ((pfd < 0) && errno) {
                        if (errno != ETIMEDOUT) {
-                               perror("\n\nhmcfgusb_poll");
+                               perror("\n\npoll");
                                exit(EXIT_FAILURE);
                        }
                }
                                exit(EXIT_FAILURE);
                        }
                }
Impressum, Datenschutz