[PATCH] Fix problem parsing space in CRSM response

Oskar Enoksson enok at lysator.liu.se
Wed Oct 29 23:53:43 PDT 2014



On 10/30/2014 12:12 AM, Aleksander Morgado wrote:
> On Wed, Oct 29, 2014 at 11:59 PM, Oskar Enoksson <enok at lysator.liu.se> wrote:
>> Yes, regex is better. Adding a test seems like a good thing.
>>
> 
> Would you be willing to do that? There are logs of examples of how
> this could be done.

Ok, I'll look into it, maybe in a few days.

> BTW; Dan checked the changes you did in the sscanf() format string and
> said that the "%*[ ]" conversion specifier wasn't really needed, just
> a " " whitespace would have done the fix (matches 0 or more
> whitespaces).

Ah! Right ... but like you say, why use scanf black magic at all when
there is modern regex science :-) ?


More information about the ModemManager-devel mailing list