mirror of
https://github.com/opnsense/src.git
synced 2026-05-25 18:54:02 -04:00
bhyve amd: Small cleanups in amdvi_dump_cmds
Bump offset with MOD_INC instead in amdvi_dump_cmds.
Reviewed by: jhb
Approved by: philip (mentor)
Differential Revision: https://reviews.freebsd.org/D28862
(cherry picked from commit be97fc8dce)
This commit is contained in:
parent
47c00a9835
commit
c4a34bb3f8
1 changed files with 1 additions and 2 deletions
|
|
@ -514,8 +514,7 @@ amdvi_dump_cmds(struct amdvi_softc *softc, int count)
|
|||
printf(" [CMD%d, off:0x%x] opcode= 0x%x 0x%x"
|
||||
" 0x%x 0x%lx\n", i, off, cmd->opcode,
|
||||
cmd->word0, cmd->word1, cmd->addr);
|
||||
off = (off + sizeof(struct amdvi_cmd)) %
|
||||
(softc->cmd_max * sizeof(struct amdvi_cmd));
|
||||
off = MOD_INC(off, sizeof(struct amdvi_cmd), softc->cmd_max);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue