Skip to content

Commit 901c6b8

Browse files
committed
Update writeline to support latest pigweed
1 parent 38f4da2 commit 901c6b8

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

examples/platform/ameba/pw_sys_io/sys_io_ameba.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Status WriteByte(std::byte b)
6969
}
7070

7171
// Writes a string using pw::sys_io, and add newline characters at the end.
72-
StatusWithSize WriteLine(const std::string_view & s)
72+
StatusWithSize WriteLine(const std::string_view s)
7373
{
7474
size_t chars_written = 0;
7575
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

examples/platform/bouffalolab/common/rpc/pw_sys_io/sys_io.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Status WriteByte(std::byte b)
4242
}
4343

4444
// Writes a string using pw::sys_io, and add newline characters at the end.
45-
StatusWithSize WriteLine(const std::string_view & s)
45+
StatusWithSize WriteLine(const std::string_view s)
4646
{
4747
size_t chars_written = 0;
4848
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

examples/platform/esp32/pw_sys_io/sys_io_esp32.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Status WriteByte(std::byte b)
9393
}
9494

9595
// Writes a string using pw::sys_io, and add newline characters at the end.
96-
StatusWithSize WriteLine(const std::string_view & s)
96+
StatusWithSize WriteLine(const std::string_view s)
9797
{
9898
size_t chars_written = 0;
9999
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

examples/platform/mbed/pw_sys_io/sys_io_mbed.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Status WriteByte(std::byte b)
5757
}
5858

5959
// Writes a string using pw::sys_io, and add newline characters at the end.
60-
StatusWithSize WriteLine(const std::string_view & s)
60+
StatusWithSize WriteLine(const std::string_view s)
6161
{
6262
size_t chars_written = 0;
6363
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

examples/platform/nrfconnect/pw_sys_io/sys_io_nrfconnect.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Status WriteByte(std::byte b)
5858
}
5959

6060
// Writes a string using pw::sys_io, and add newline characters at the end.
61-
StatusWithSize WriteLine(const std::string_view & s)
61+
StatusWithSize WriteLine(const std::string_view s)
6262
{
6363
size_t chars_written = 0;
6464
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

examples/platform/nxp/pw_sys_io/sys_io_nxp.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Status WriteByte(std::byte b)
6060
}
6161

6262
// Writes a string using pw::sys_io, and add newline characters at the end.
63-
StatusWithSize WriteLine(const std::string_view & s)
63+
StatusWithSize WriteLine(const std::string_view s)
6464
{
6565
size_t chars_written = 0;
6666
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

examples/platform/qpg/pw_sys_io/sys_io_qpg.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Status WriteByte(std::byte b)
5858
}
5959

6060
// Writes a string using pw::sys_io, and add newline characters at the end.
61-
StatusWithSize WriteLine(const std::string_view & s)
61+
StatusWithSize WriteLine(const std::string_view s)
6262
{
6363
size_t chars_written = 0;
6464
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

examples/platform/silabs/pw_sys_io/sys_io_silabs.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Status WriteByte(std::byte b)
6363
}
6464

6565
// Writes a string using pw::sys_io, and add newline characters at the end.
66-
StatusWithSize WriteLine(const std::string_view & s)
66+
StatusWithSize WriteLine(const std::string_view s)
6767
{
6868
size_t chars_written = 0;
6969
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

examples/platform/telink/pw_sys_io/sys_io_telink.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Status WriteByte(std::byte b)
7373
}
7474

7575
// Writes a string using pw::sys_io, and add newline characters at the end.
76-
StatusWithSize WriteLine(const std::string_view & s)
76+
StatusWithSize WriteLine(const std::string_view s)
7777
{
7878
size_t chars_written = 0;
7979
StatusWithSize result = WriteBytes(pw::as_bytes(pw::span(s)));

0 commit comments

Comments
 (0)