[mojosetup] logDebug() does not require a trailing linefeed.

Ryan C. Gordon icculus at icculus.org
Mon Aug 10 19:01:55 EDT 2020


I assume I should make sure the attribution on these commits are...

     Francois Gouget <fgouget at codeweavers>

...right?


--ryan.



On 8/10/20 1:14 PM, Francois Gouget wrote:
> Like the other log functions it goes through addLog() which removes
> trailing linefeeds before calling MojoPlatform_log().
> ---
>   universal.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/universal.h b/universal.h
> index a47530e..a23c364 100644
> --- a/universal.h
> +++ b/universal.h
> @@ -397,7 +397,7 @@ do { \
>       if (!seen_this) \
>       { \
>           seen_this = true; \
> -        prelog logDebug("STUBBED: %0 at %1 (%2:%3)\n", x, __FUNCTION__, \
> +        prelog logDebug("STUBBED: %0 at %1 (%2:%3)", x, __FUNCTION__, \
>                  __FILE__, DEFINE_TO_STR(__LINE__)); \
>       } \
>   } while (false)
> 



More information about the mojosetup mailing list