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:
Denis Kenzior 2012-01-07 13:23:32 -06:00
parent bddacd8774
commit 28af056870
1 changed files with 1 additions and 1 deletions

View File

@ -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);