Skip to content

Commit cface4f

Browse files
mctp-req: Add data argument in usage
The usage description is missing the `data` argument, add it and an example of how it is used. Signed-off-by: Lei YU <[email protected]>
1 parent ae3a916 commit cface4f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mctp-req.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,13 @@ static int mctp_req(unsigned int net, mctp_eid_t eid,
123123

124124
static void usage(void)
125125
{
126-
fprintf(stderr, "mctp-req [eid <eid>] [net <net>] [if <ifindex> lladdr <hwaddr>] [len <len>]\n");
126+
fprintf(stderr, "mctp-req [eid <eid>] [net <net>]"
127+
"[if <ifindex> lladdr <hwaddr>] [len <len>]"
128+
"[data <data>]\n");
127129
fprintf(stderr, "default eid %d net %d len %zd\n",
128130
DEFAULT_EID, DEFAULT_NET, DEFAULT_LEN);
131+
fprintf(stderr, "The data is in hex format separated by colon, e.g."
132+
"00:01:0f");
129133
}
130134

131135
int main(int argc, char ** argv)

0 commit comments

Comments
 (0)