Page MenuHomeFreeBSD

wdatwd: fix i386 build breakage.
ClosedPublic

Authored by takawata on Jan 3 2023, 11:33 PM.
Tags
None
Referenced Files
F153072105: D37937.id114741.diff
Sat, Apr 18, 11:17 PM
Unknown Object (File)
Sat, Apr 18, 5:00 AM
Unknown Object (File)
Fri, Apr 17, 8:29 AM
Unknown Object (File)
Thu, Apr 16, 8:52 AM
Unknown Object (File)
Wed, Apr 15, 4:13 PM
Unknown Object (File)
Sat, Apr 11, 9:52 AM
Unknown Object (File)
Mon, Apr 6, 11:18 AM
Unknown Object (File)
Mon, Mar 30, 4:10 PM
Subscribers

Details

Summary

Formatting string for uint64_t has portablity issue and
lead bulid breakage so fix it.

Test Plan

compile module both i386 and amd64

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

hrs added inline comments.
sys/dev/wdatwd/wdatwd.c
366–371

This might be a matter of preference, but %ju and type casting by (uintmax_t) would be simpler.

681

Same here. %jx, in this case.

This revision is now accepted and ready to land.Jan 4 2023, 12:53 AM
This revision was automatically updated to reflect the committed changes.