mirror of
https://github.com/open-simh/simh.git
synced 2026-01-22 02:34:53 +00:00
DISK: generalized data debug routine for use by devices that don't use sim_disk
This commit is contained in:
parent
9f929ae312
commit
8df467835a
@ -2071,13 +2071,13 @@ return stat;
|
||||
|
||||
void sim_disk_data_trace(UNIT *uptr, const uint8 *data, size_t lba, size_t len, const char* txt, int detail, uint32 reason)
|
||||
{
|
||||
struct disk_context *ctx = (struct disk_context *)uptr->disk_ctx;
|
||||
DEVICE *dptr = find_dev_from_unit (uptr);
|
||||
|
||||
if (sim_deb && (ctx->dptr->dctrl & reason)) {
|
||||
if (sim_deb && (dptr->dctrl & reason)) {
|
||||
char pos[32];
|
||||
|
||||
sprintf (pos, "lbn: %08X ", (unsigned int)lba);
|
||||
sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), pos, len, txt, reason);
|
||||
sim_data_trace(dptr, uptr, (detail ? data : NULL), pos, len, txt, reason);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user