[PATCH v4] log: Add rate-limiting macros for log messages