git.droids-corp.org
/
protos
/
xbee-avr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
decf72a
)
xbee_neighbor: replace printf printf_P
author
Fabrice Desclaux
<serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:34:24 +0000
(19:34 +0100)
committer
Fabrice Desclaux
<serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:34:24 +0000
(19:34 +0100)
xbee_neighbor.c
patch
|
blob
|
history
diff --git
a/xbee_neighbor.c
b/xbee_neighbor.c
index fc4fcdad901125787f43310786588666dbc52fd6..22daa0216e613ba445609f7b34c23c3979150e1a 100644
(file)
--- a/
xbee_neighbor.c
+++ b/
xbee_neighbor.c
@@
-86,7
+86,7
@@
struct xbee_neigh *xbee_neigh_add(struct xbee_dev *dev, const char *name,
return NULL;
neigh->addr = addr;
- snprintf
(neigh->name, sizeof(neigh->name), "%s"
, name);
+ snprintf
_P(neigh->name, sizeof(neigh->name), PSTR("%s")
, name);
LIST_INSERT_HEAD(&dev->neigh_list, neigh, next);
return neigh;