Re:Debugging an Ioctl Problem on OpenBSD
by kevin_b_er on Thursday February 17, 2022 @10:56AM
(#30374433)
I'm annoyed ktrace wasn't revisited. If the integer was getting truncated, why did ktrace print that the request was still VIDIOC_S_FMT? Shouldn't it have printed some goofy number that didn't match?
[ Parent
| on HN ]
Kdump truncates to a 32-bit value: https://github.com/openbsd/src/blob/master/usr.bin/kdump/kdu...
Re:Debugging an Ioctl Problem on OpenBSD
by tedunangst on Thursday February 17, 2022 @11:40PM
(#30382200)
Oh! That's dumb. The printer correctly uses unsigned long.
https://github.com/openbsd/src/blob/master/usr.bin/kdump/mki...
Re:Debugging an Ioctl Problem on OpenBSD
by tedunangst on Thursday February 17, 2022 @03:11PM
(#30378039)
That is weird. I don't see an easy explanation. kdump uses unsigned long.