Merge "Added printf attribute to exception function."