Trivial formatting changes

svn path=/trunk/; revision=29484
This commit is contained in:
Martin Mathieson 2009-08-20 13:16:34 +00:00
parent 0819c36d3a
commit 70284d6cc4
1 changed files with 17 additions and 20 deletions

View File

@ -25,8 +25,8 @@
/* TODO: /* TODO:
- limit by display filter - limit by display filter?
- Help button and documentation - Break down traffic by cell?
- CSV export? - CSV export?
*/ */
@ -274,7 +274,7 @@ mac_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_,
struct mac_lte_tap_info *si = (struct mac_lte_tap_info *)phi; struct mac_lte_tap_info *si = (struct mac_lte_tap_info *)phi;
if (!hs) { if (!hs) {
return (0); return 0;
} }
common_stats.all_frames++; common_stats.all_frames++;
@ -407,15 +407,15 @@ mac_lte_ue_details(mac_lte_ep_t *mac_stat_ep)
/* UL SDUs */ /* UL SDUs */
for (n=0; n < PREDEFINED_COLUMN-1; n++) { for (n=0; n < PREDEFINED_COLUMN-1; n++) {
g_snprintf(buff, sizeof(buff), "%u", mac_stat_ep ? mac_stat_ep->stats.UL_sdus_for_lcid[n] : 0); g_snprintf(buff, sizeof(buff), "%u",
mac_stat_ep ? mac_stat_ep->stats.UL_sdus_for_lcid[n] : 0);
gtk_label_set_text(GTK_LABEL(selected_ue_column_entry[n+1][1]), buff); gtk_label_set_text(GTK_LABEL(selected_ue_column_entry[n+1][1]), buff);
} }
/* Predefined */ /* Predefined */
if (mac_stat_ep) { if (mac_stat_ep) {
g_snprintf(buff, sizeof(buff), "%u", mac_stat_ep->stats.is_predefined_data ? g_snprintf(buff, sizeof(buff), "%u",
mac_stat_ep->stats.UL_frames : mac_stat_ep->stats.is_predefined_data ? mac_stat_ep->stats.UL_frames : 0);
0);
} }
else { else {
g_snprintf(buff, sizeof(buff), "%u", 0); g_snprintf(buff, sizeof(buff), "%u", 0);
@ -432,9 +432,8 @@ mac_lte_ue_details(mac_lte_ep_t *mac_stat_ep)
/* Predefined */ /* Predefined */
if (mac_stat_ep) { if (mac_stat_ep) {
g_snprintf(buff, sizeof(buff), "%u", mac_stat_ep->stats.is_predefined_data ? g_snprintf(buff, sizeof(buff), "%u",
mac_stat_ep->stats.UL_total_bytes : mac_stat_ep->stats.is_predefined_data ? mac_stat_ep->stats.UL_total_bytes : 0);
0);
} }
else { else {
g_snprintf(buff, sizeof(buff), "%u", 0); g_snprintf(buff, sizeof(buff), "%u", 0);
@ -450,9 +449,8 @@ mac_lte_ue_details(mac_lte_ep_t *mac_stat_ep)
} }
/* Predefined */ /* Predefined */
if (mac_stat_ep) { if (mac_stat_ep) {
g_snprintf(buff, sizeof(buff), "%u", mac_stat_ep->stats.is_predefined_data ? g_snprintf(buff, sizeof(buff), "%u",
mac_stat_ep->stats.DL_frames : mac_stat_ep->stats.is_predefined_data ? mac_stat_ep->stats.DL_frames : 0);
0);
} }
else { else {
g_snprintf(buff, sizeof(buff), "%u", 0); g_snprintf(buff, sizeof(buff), "%u", 0);
@ -468,9 +466,8 @@ mac_lte_ue_details(mac_lte_ep_t *mac_stat_ep)
} }
/* Predefined */ /* Predefined */
if (mac_stat_ep) { if (mac_stat_ep) {
g_snprintf(buff, sizeof(buff), "%u", mac_stat_ep->stats.is_predefined_data ? g_snprintf(buff, sizeof(buff), "%u",
mac_stat_ep->stats.DL_total_bytes : mac_stat_ep->stats.is_predefined_data ? mac_stat_ep->stats.DL_total_bytes : 0);
0);
} }
else { else {
g_snprintf(buff, sizeof(buff), "%u", 0); g_snprintf(buff, sizeof(buff), "%u", 0);
@ -805,9 +802,9 @@ static void mac_lte_stat_dlg_create(void)
mac_lte_stat_packet, mac_lte_stat_packet,
mac_lte_stat_draw); mac_lte_stat_draw);
if (error_string) { if (error_string) {
simple_dialog (ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str); simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
g_string_free (error_string, TRUE); g_string_free(error_string, TRUE);
g_free (hs); g_free(hs);
return; return;
} }