mirror of git://git.sysmocom.de/ofono
modem: Tweak produced path
For drivers that contain digits at the end the currently produced path can be somewhat confusing.
This commit is contained in:
parent
bddacd8774
commit
28af056870
|
@ -1798,7 +1798,7 @@ struct ofono_modem *ofono_modem_create(const char *name, const char *type)
|
|||
return NULL;
|
||||
|
||||
if (name == NULL)
|
||||
snprintf(path, sizeof(path), "/%s%d", type, next_modem_id);
|
||||
snprintf(path, sizeof(path), "/%s_%d", type, next_modem_id);
|
||||
else
|
||||
snprintf(path, sizeof(path), "/%s", name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue