Re: [U-Boot] [PATCH 1/2] hwconfig: Fix stop characters parsing for subkeys

2010-06-29 Thread Wolfgang Denk
Dear Anton Vorontsov, In message <20100618110812.ga26...@oksana.dev.rtsoft.ru> you wrote: > For the following hwconfig string: > > key1:subkey1=value1,subkey2=value2;key2:value3 > > The subkey2 cannot be extracted correctly. The parsing code looks > for comma as a stopch, but there may be two

[U-Boot] [PATCH 1/2] hwconfig: Fix stop characters parsing for subkeys

2010-06-18 Thread Anton Vorontsov
For the following hwconfig string: key1:subkey1=value1,subkey2=value2;key2:value3 The subkey2 cannot be extracted correctly. The parsing code looks for comma as a stopch, but there may be two kind of stop characters: a comma and a semicolon. Currently the code would return "value2;key2:value3"