Added G_GNUC_PRINTF(...) to definitions of functions that take format strings so GCC can detect them and complain when things don't look right.