Allow the kernel to generate more spacy things and still have devd
cope. Skip multiple spaces in a few contexts. PR: 96854 Submitted by: Shin'ya Kumabuchi MFC after: 1 week
This commit is contained in:
parent
ba0d27e3c2
commit
9b6cb52091
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213646
@ -749,9 +749,13 @@ process_event(char *buffer)
|
|||||||
if (sp == NULL)
|
if (sp == NULL)
|
||||||
return; /* Can't happen? */
|
return; /* Can't happen? */
|
||||||
*sp++ = '\0';
|
*sp++ = '\0';
|
||||||
|
while (isspace(*sp))
|
||||||
|
sp++;
|
||||||
if (strncmp(sp, "at ", 3) == 0)
|
if (strncmp(sp, "at ", 3) == 0)
|
||||||
sp += 3;
|
sp += 3;
|
||||||
sp = cfg.set_vars(sp);
|
sp = cfg.set_vars(sp);
|
||||||
|
while (isspace(*sp))
|
||||||
|
sp++;
|
||||||
if (strncmp(sp, "on ", 3) == 0)
|
if (strncmp(sp, "on ", 3) == 0)
|
||||||
cfg.set_variable("bus", sp + 3);
|
cfg.set_variable("bus", sp + 3);
|
||||||
break;
|
break;
|
||||||
@ -762,9 +766,13 @@ process_event(char *buffer)
|
|||||||
return; /* Can't happen? */
|
return; /* Can't happen? */
|
||||||
*sp++ = '\0';
|
*sp++ = '\0';
|
||||||
cfg.set_variable("device-name", buffer);
|
cfg.set_variable("device-name", buffer);
|
||||||
|
while (isspace(*sp))
|
||||||
|
sp++;
|
||||||
if (strncmp(sp, "at ", 3) == 0)
|
if (strncmp(sp, "at ", 3) == 0)
|
||||||
sp += 3;
|
sp += 3;
|
||||||
sp = cfg.set_vars(sp);
|
sp = cfg.set_vars(sp);
|
||||||
|
while (isspace(*sp))
|
||||||
|
sp++;
|
||||||
if (strncmp(sp, "on ", 3) == 0)
|
if (strncmp(sp, "on ", 3) == 0)
|
||||||
cfg.set_variable("bus", sp + 3);
|
cfg.set_variable("bus", sp + 3);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user