Skip to content

Commit

Permalink
HFE: Extra debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed May 22, 2024
1 parent 0370679 commit f787c12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/image/hfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ static bool_t hfe_open(struct image *im)
}

im->hfe.double_step = !dhdr.single_step;
printk("HFE: Double step == %d\n", im->hfe.double_step);
im->hfe.tlut_base = le16toh(dhdr.track_list_offset);
im->nr_cyls = dhdr.nr_tracks;
im->step = im->hfe.double_step ? 2 : 1;
Expand Down Expand Up @@ -149,6 +150,7 @@ static void hfe_setup_track(
uint8_t side = track & (im->nr_sides - 1);

track = cyl*2 + side;
printk("[HFE:%d.%d:%d]", cyl, side, track);
if (track != im->cur_track)
hfe_seek_track(im, track);

Expand Down

0 comments on commit f787c12

Please sign in to comment.