From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 15 Mar 2021 11:52:25 -0400 Subject: [PATCH v2 3/6] log: Add return-checking macros for 0 being success In-Reply-To: <20210121031057.559301-4-sjg@chromium.org> References: <20210121031057.559301-1-sjg@chromium.org> <20210121031057.559301-4-sjg@chromium.org> Message-ID: <20210315155225.GH1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jan 20, 2021 at 08:10:54PM -0700, Simon Glass wrote: > The existing log_ret() and log_msg_ret() macros consider an error to be > less than zero. But some function may return a positive number to indicate > a different kind of failure. Add macros to check for that also. > > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: