Fix a format specifier issue when building 'tpm_ppi_qemu.c' with
'dsdt_line' marked as 'printflike'.
Details
Details
- Reviewers
corvink markj - Group Reviewers
bhyve - Commits
- rGc7a1776752ec: bhyve/tpm_ppi_qemu: Cast address of the TPP3 field to uint32_t
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
usr.sbin/bhyve/tpm_ppi_qemu.c | ||
---|---|---|
210 | (unsigned int) is really the only way to fix the identifier. *OR* casting it to the maximum int which is overkill here imho. |
usr.sbin/bhyve/tpm_ppi_qemu.c | ||
---|---|---|
210 | Casting the sizeof rather than whole expression would perhaps be clearer. I don't quite understand why casting to unsigned int would be better. |