Skip to content

Commit f3cc656

Browse files
committed
Fix printf format specifier to match length of data type.
1 parent 659687b commit f3cc656

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Bluefruit52Lib/src/utility/bonding.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static void bond_save_keys_dfr (uint8_t role, uint16_t conn_hdl, bond_keys_t* bk
123123

124124
bdata_write(&file, devname, strlen(devname)+1); // save also null char
125125

126-
BOND_LOG("Saved keys for \"%s\" to file %s ( %d bytes )", devname, filename, file.size());
126+
BOND_LOG("Saved keys for \"%s\" to file %s ( %ld bytes )", devname, filename, file.size());
127127

128128
file.close();
129129
}
@@ -178,7 +178,7 @@ static void bond_save_cccd_dfr (uint8_t role, uint16_t conn_hdl, uint16_t ediv)
178178

179179
bdata_write(&file, sys_attr, len);
180180

181-
BOND_LOG("Saved CCCD setting to file %s ( offset = %d, len = %d bytes )", filename, file.size() - (len + 1), len);
181+
BOND_LOG("Saved CCCD setting to file %s ( offset = %ld, len = %d bytes )", filename, file.size() - (len + 1), len);
182182

183183
file.close();
184184
}
@@ -217,7 +217,7 @@ bool bond_load_cccd(uint8_t role, uint16_t conn_hdl, uint16_t ediv)
217217
if ( ERROR_NONE == sd_ble_gatts_sys_attr_set(conn_hdl, sys_attr, len, SVC_CONTEXT_FLAG) )
218218
{
219219
loaded = true;
220-
BOND_LOG("Loaded CCCD from file %s ( offset = %d, len = %d bytes )", filename, file.size() - (len + 1), len);
220+
BOND_LOG("Loaded CCCD from file %s ( offset = %ld, len = %d bytes )", filename, file.size() - (len + 1), len);
221221
}
222222
}
223223
}

0 commit comments

Comments
 (0)