blob: d6337caab1add857e3a736760bccdc96cfa94d2c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "packet.h"
#include <vespa/vespalib/util/stringfmt.h>
vespalib::string
FNET_Packet::Print(uint32_t indent)
{
return vespalib::make_string("%*sFNET_Packet[subclass] { regular=%s, control=%s, "
"pcode=%d, command=%d, length=%d }\n", indent, "",
IsRegularPacket()? "true" : "false",
IsControlPacket()? "true" : "false",
GetPCODE(), GetCommand(), GetLength());
}
|