aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-05-09 20:39:59 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-05-09 20:39:59 +0000
commit535731ccecc4e517e39562f0373ae56ce5782011 (patch)
treeb5b1b0149863d2930a1fc495f6717ce6c518812b /gtk
parent956d317fb83a1f0beb974473625b6bda4a7fc963 (diff)
pass the correct hf filter name for the opcode field when we create the srt table
so that the popup menues to generate filters work. svn path=/trunk/; revision=18118
Diffstat (limited to 'gtk')
-rw-r--r--gtk/scsi_stat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/scsi_stat.c b/gtk/scsi_stat.c
index 3f75a0d9a6..f97aa5a087 100644
--- a/gtk/scsi_stat.c
+++ b/gtk/scsi_stat.c
@@ -183,6 +183,7 @@ gtk_scsistat_init(const char *optarg, void* userdata _U_)
int program, pos;
const char *filter=NULL;
GString *error_string;
+ char *hf_name=NULL;
pos=0;
if(sscanf(optarg,"scsi,srt,%d,%n",&program,&pos)==1){
@@ -203,14 +204,17 @@ gtk_scsistat_init(const char *optarg, void* userdata _U_)
case SCSI_DEV_SBC:
rs->prog="SBC";
rs->cdbnames=scsi_sbc2_vals;
+ hf_name="scsi.sbc.opcode";
break;
case SCSI_DEV_SSC:
rs->prog="SSC";
rs->cdbnames=scsi_ssc2_vals;
+ hf_name="scsi.ssc.opcode";
break;
case SCSI_DEV_CDROM:
rs->prog="MMC";
rs->cdbnames=scsi_mmc_vals;
+ hf_name="scsi.mmc.opcode";
break;
}
@@ -234,7 +238,7 @@ gtk_scsistat_init(const char *optarg, void* userdata _U_)
/* We must display TOP LEVEL Widget before calling init_srt_table() */
gtk_widget_show_all(rs->win);
- init_srt_table(&rs->srt_table, 256, vbox, rs->prog);
+ init_srt_table(&rs->srt_table, 256, vbox, hf_name);
for(i=0;i<256;i++){
init_srt_table_row(&rs->srt_table, i, val_to_str(i, rs->cdbnames, "Unknown-0x%02x"));