Fix for r281680 -- broke i386 world

David Wolfskill david at catwhisker.org
Sat Apr 18 15:17:09 UTC 2015


Head/amd64 @ r281689 built OK, but my i386 build failed:

...
--- usr.sbin.all__D ---
--- all_subdir_bluetooth ---
/usr/src/usr.sbin/bluetooth/hccontrol/le.c:236:4: error: format specifies type 'unsigned long' but the argument has type 'u_int64_t' (aka 'unsigned long long') [-Werror,-Wformat]
                        rp.le_features);
                        ^~~~~~~~~~~~~~
/usr/src/usr.sbin/bluetooth/hccontrol/le.c:253:49: error: format specifies type 'unsigned long' but the argument has type 'u_int64_t' (aka 'unsigned long long') [-Werror,-Wformat]
        printf("LE_STATUS: %d %d %lx\n", e, rp.status, rp.le_status);
                                 ~~~                   ^~~~~~~~~~~~
                                 %llx
2 errors generated.
....


The attached patch allows i386 to build, and I then tested to verify
that amd64 still built.  (I don't have Bluetooth devices, so I
cannot test its operation.)

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Those who murder in the name of God or prophet are blasphemous cowards.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bluetooth.diff
Type: text/x-diff
Size: 700 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150418/08cf95b0/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20150418/08cf95b0/attachment.sig>


More information about the freebsd-current mailing list