mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-26 07:02:15 +03:00
Netdump printf fix (#8215)
* Fix crash printf long getTime() * Update several printf to printf_P
This commit is contained in:
@ -68,7 +68,7 @@ void Netdump::reset()
|
||||
|
||||
void Netdump::printDump(Print& out, Packet::PacketDetail ndd, const Filter nf)
|
||||
{
|
||||
out.printf("netDump starting\r\n");
|
||||
out.printf_P(PSTR("netDump starting\r\n"));
|
||||
setCallback([&out, ndd, this](const Packet & ndp)
|
||||
{
|
||||
printDumpProcess(out, ndd, ndp);
|
||||
@ -140,7 +140,7 @@ void Netdump::writePcapHeader(Stream& s) const
|
||||
|
||||
void Netdump::printDumpProcess(Print& out, Packet::PacketDetail ndd, const Packet& np) const
|
||||
{
|
||||
out.printf_P(PSTR("%8d %s"), np.getTime(), np.toString(ndd).c_str());
|
||||
out.printf_P(PSTR("%8lld %s"), np.getTime(), np.toString(ndd).c_str());
|
||||
}
|
||||
|
||||
void Netdump::fileDumpProcess(File& outfile, const Packet& np) const
|
||||
|
Reference in New Issue
Block a user