projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bddacd8
)
modem: Tweak produced path
author
Denis Kenzior
<denkenz@gmail.com>
Sat, 7 Jan 2012 19:23:32 +0000
(13:23 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Sat, 7 Jan 2012 19:23:32 +0000
(13:23 -0600)
For drivers that contain digits at the end the currently produced
path can be somewhat confusing.
src/modem.c
patch
|
blob
|
history
diff --git
a/src/modem.c
b/src/modem.c
index
2fabe17
..
2c447d8
100644
(file)
--- a/
src/modem.c
+++ b/
src/modem.c
@@
-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);