+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] = %lld, %p->partnum[%d] = %lld\n",
+ cur_tape, file, (long long)cur_tape->files[file],
+ cur_tape, file, (long long)cur_tape->partnum[file]);
+ }
+ count++;
+ }
+ dbprintf(" %p count = %d\n", tapelist, count);
+}
+