Re: [PATCH] eapol_test build under GCC-10

Jouni Malinen <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
On Sun, Feb 16, 2020 at 04:23:12PM +0100, Didier 'OdyX' Raboud wrote:
> wpa_supplicant.c: In function ‘wpa_supplicant_init’:
> wpa_supplicant.c:6821:24: error: unknown conversion type character ‘+’ in format [-Werror=format=]
>  6821 |  wpa_printf(MSG_DEBUG, "wpa_supplicant v" VERSION_STR);
>       |                        ^~~~~~~~~~~~~~~~~~

> It might be because in the Debian package's development case, VERSION_STR
> ends up being "v2.10-devel-debian/2%2.9+git20200213+877d9a0-1-3-g3bd59207c+".

Indeed.. That has nothing to do with the compiler version. I did not
expect anyone to use '%' in a version string, but apparently that can
happen, so I applied this patch with additions to cover all cases where
VERSION_STR was used in this manner.

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/hostap
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.