Summary: | need _DBUS_UINT64_FORMAT, etc | ||
---|---|---|---|
Product: | dbus | Reporter: | Colin Walters <walters> |
Component: | core | Assignee: | Havoc Pennington <hp> |
Status: | RESOLVED FIXED | QA Contact: | John (J5) Palmieri <johnp> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
0001-Add-DBUS_GNUC_PRINTF-checks-to-new-formatting-functi.patch
0002-Add-DBUS_INT64_MODIFIER-define-turn-on-Wformat.patch |
Description
Colin Walters
2008-12-19 16:39:17 UTC
Created attachment 34329 [details] [review] 0001-Add-DBUS_GNUC_PRINTF-checks-to-new-formatting-functi.patch Created attachment 34330 [details] [review] 0002-Add-DBUS_INT64_MODIFIER-define-turn-on-Wformat.patch Comment on attachment 34329 [details] [review] 0001-Add-DBUS_GNUC_PRINTF-checks-to-new-formatting-functi.patch This looks fine. Comment on attachment 34330 [details] [review] 0002-Add-DBUS_INT64_MODIFIER-define-turn-on-Wformat.patch dbus_uid_t and dbus_pid_t have format macros DBUS_UID_FORMAT and DBUS_PID_FORMAT; shouldn't they be used rather than casting uids and pids to int? It's a little bit upsetting that dbus-monitor will silently omit values if configure couldn't figure out DBUS_INT64_PRINTF_MODIFIER. Maybe it should print "int64 (omitted, see fd.o#19195)"? Any progress on this? (I'd personally be tempted to say "D-Bus now requires 64-bit integers, and support for them in printf" and see whether anyone reports that this breaks their OS... GLib has the same requirement, now.) See also Bug #35114. This appears to have been fixed (with wjt's suggestions included) between 1.2.22 and 1.2.24. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.