Commit e8ad7a8
EM: Fix for battery technology string not showing up
Battery host utility sends an initial message with all
constant fields like battery technology, manaufacturer,
serial number, etc. This message is of different size
from subsequent messages. Since HAL is waiting for a
particular amount of bytes, this message is not
processed by HAL. So, reuse the same msgbuf which is
used for other messages. This will also help in saving
few bytes in memory.
Also, this patch fixes a warning on format-truncation.
Since base_path (source) and sysfs_path (destination)
have same array size, compiler complains that there
may be a truncation during snprintf operation. Reduce
the base_path (destination) array size to avoid this
warning.
Tracked-On: OAM-91507
Signed-off-by: Saranya Gopal <saranya.gopal@intel.com>1 parent feb1fe3 commit e8ad7a8
2 files changed
+8
-16
lines changedBinary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 198 | | |
205 | 199 | | |
206 | 200 | | |
| |||
216 | 210 | | |
217 | 211 | | |
218 | 212 | | |
219 | | - | |
220 | | - | |
221 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
222 | 216 | | |
223 | 217 | | |
224 | 218 | | |
225 | | - | |
226 | | - | |
227 | | - | |
| 219 | + | |
| 220 | + | |
228 | 221 | | |
229 | | - | |
| 222 | + | |
230 | 223 | | |
231 | 224 | | |
232 | 225 | | |
233 | 226 | | |
234 | | - | |
| 227 | + | |
235 | 228 | | |
236 | | - | |
237 | 229 | | |
238 | 230 | | |
239 | 231 | | |
| |||
0 commit comments