#include <gtk/gtk.h>
#include <epan/stats_tree_priv.h>
+#include <epan/report_err.h>
#include "simple_dialog.h"
#include "globals.h"
st = stats_tree_new(cfg,pr,NULL);
}
} else {
- g_error("no such stats_tree (%s) found in stats_tree registry",abbr);
+ report_failure("no such stats_tree (%s) found in stats_tree registry",abbr);
}
g_free(abbr);
} else {
- g_error("could not obtain stats_tree abbr from optarg");
+ report_failure("could not obtain stats_tree abbr from optarg");
}
window_name = g_strdup_printf("%s Stats Tree", cfg->name);
/* error, we failed to attach to the tap. clean up */
simple_dialog( ESD_TYPE_ERROR, ESD_BTN_OK, error_string->str );
/* destroy_stat_tree_window(st); */
- g_error("stats_tree for: %s failed to attach to the tap: %s",cfg->name,error_string->str);
+ report_failure("stats_tree for: %s failed to attach to the tap: %s",cfg->name,error_string->str);
g_string_free(error_string, TRUE);
}
#include <glib.h>
#include <epan/stats_tree_priv.h>
#include <epan/stat_cmd_args.h>
+#include <epan/report_err.h>
/* actually unused */
struct _st_node_pres {
st->filter=NULL;
}
} else {
- g_error("no such stats_tree (%s) found in stats_tree registry",abbr);
+ report_failure("no such stats_tree (%s) found in stats_tree registry",abbr);
+ return;
}
g_free(abbr);
} else {
- g_error("could not obtain stats_tree abbr (%s) from optarg '%s'",abbr,optarg);
+ report_failure("could not obtain stats_tree abbr (%s) from optarg '%s'",abbr,optarg);
+ return;
}
error_string = register_tap_listener( st->cfg->tapname,
draw_stats_tree);
if (error_string) {
- g_error("stats_tree for: %s failed to attach to the tap: %s",cfg->name,error_string->str);
+ report_failure("stats_tree for: %s failed to attach to the tap: %s",cfg->name,error_string->str);
+ return;
}
if (cfg->init) cfg->init(st);