]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: debug: clarify "debug dev stream" help message
authorWilly Tarreau <w@1wt.eu>
Tue, 2 May 2023 14:37:13 +0000 (16:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 May 2023 09:47:44 +0000 (11:47 +0200)
The help message was insufficient to figure how to use it and specify
the stream pointer and changes to operate.

src/debug.c

index b02d92f8f5ceefc485083ef96821237755eef6d4..e613271a54ec8c5596e68564c3293c28794c1a59 100644 (file)
@@ -772,10 +772,8 @@ static int debug_parse_cli_stream(char **args, char *payload, struct appctx *app
 
        if (!*args[3]) {
                return cli_err(appctx,
-                              "Usage: debug dev stream { <obj> <op> <value> | wake }*\n"
-                              "     <obj>   = {strm | strm.f | strm.x |\n"
-                              "                scf.s | scb.s |\n"
-                              "                txn.f | req.f | res.f}\n"
+                              "Usage: debug dev stream [ strm=<ptr> ] { <obj> <op> <value> | wake }*\n"
+                              "     <obj>   = { strm.f | strm.x | scf.s | scb.s | txn.f | req.f | res.f }\n"
                               "     <op>    = {'' (show) | '=' (assign) | '^' (xor) | '+' (or) | '-' (andnot)}\n"
                               "     <value> = 'now' | 64-bit dec/hex integer (0x prefix supported)\n"
                               "     'wake' wakes the stream asssigned to 'strm' (default: current)\n"