Correct the printf format specifier for total_events.
Add __printflike argument checking for devdlog().

Reported by: pjd
Approved by: gibbs (co-mentor)
Fix build with INVARIANT_SUPPORT enabled but not INVARIANTS.

Reported by:	"Matthew D. Fuller" <fullermd@over-yonder.net>