+void
+dump_tapelist(
+ tapelist_t *tapelist)
+{
+ tapelist_t *cur_tape;
+ int count = 0;
+ int file;
+
+ dbprintf(("dump_tapelist(%p):\n", tapelist));
+ for(cur_tape = tapelist ; cur_tape != NULL ; cur_tape = cur_tape->next) {
+ dbprintf((" %p->next = %p\n", cur_tape, cur_tape->next));
+ dbprintf((" %p->label = %s\n", cur_tape, cur_tape->label));
+ dbprintf((" %p->isafile = %d\n", cur_tape, cur_tape->isafile));
+ dbprintf((" %p->numfiles = %d\n", cur_tape, cur_tape->numfiles));
+ for (file=0; file < cur_tape->numfiles; file++) {
+ dbprintf((" %p->files[%d] = " OFF_T_FMT "\n",
+ cur_tape, file, (OFF_T_FMT_TYPE)cur_tape->files[file]));
+ }
+ count++;
+ }
+ dbprintf((" %p count = %d\n", tapelist, count));
+}
+