Add better error checking when loading invalid hex files
[emu8051.git] / src / gtk / regwin.c
index 8c4cd4d..8b470a9 100644 (file)
@@ -82,6 +82,8 @@ regwin_cell_edited(GtkCellRendererText *cell, gchar *path_string,
        char *str;
        struct regwin_infos_t *regwin_infos;
 
+       (void) cell; /* Remove compiler warning about unused variables. */
+
        if (!model) {
                g_error("Unable to get model from cell renderer");
        }
@@ -237,7 +239,7 @@ regwin_refresh(void)
                }
 
                if (!valid) {
-                       printf("Invalid iter...\n");
+                       log_err("Tree model: invalid iter");
                        return;
                }