[ovs-dev] [PATCH] memory: Avoid an empty log message if there's nothing to log.

Justin Pettit jpettit at nicira.com
Wed Apr 3 04:33:46 UTC 2013


On Apr 2, 2013, at 8:49 PM, Ben Pfaff <blp at nicira.com> wrote:

> -    if (want_report) {
> +    if (want_report && s.length > 0) {

Isn't our style normally to do it like this?

	if (want_report && s.length) {

Otherwise, looks good.

--Justin





More information about the dev mailing list