We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80a5c9 commit 1adeadeCopy full SHA for 1adeade
examples/mbed/z_scout.cpp
@@ -44,7 +44,7 @@ void fprintzid(FILE *stream, z_id_t zid) {
44
void fprintwhatami(FILE *stream, z_whatami_t whatami) {
45
z_view_string_t s;
46
z_whatami_to_view_string(whatami, &s);
47
- fprintf(stream, "\"%.*s\"", (int)z_string_len(z_loan(s)), z_string_data(z_loan(s)));
+ fprintf(stream, "\"%.*s\"", (int)z_string_len(z_view_string_loan(&s)), z_string_data(z_view_string_loan(&s)));
48
}
49
50
void fprintlocators(FILE *stream, const z_loaned_string_array_t *locs) {
0 commit comments