From: Maxim Kokryashkin via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Kaplun <skaplun@tarantool.org>
Cc: Maxim Kokryashkin <max.kokryashkin@gmail.com>,
tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit v9 1/2] tools: add cli flag to run profile dump parsers
Date: Mon, 4 Sep 2023 12:30:12 +0300 [thread overview]
Message-ID: <6sq7pi6oj2l7pthtsw7hmq2nepbesy4lfgvj2zr37nlbt4nvav@qa2ovqh3i5ee> (raw)
In-Reply-To: <ZPRW823WBTuXeVNT@root>
Hi, Sergey!
Thanks for the review!
Fixed your comment, branch is force-pushed.
On Sun, Sep 03, 2023 at 12:50:43PM +0300, Sergey Kaplun wrote:
> Hi, Maxim!
> Thanks for the patch!
> LGTM, with a single nit below.
>
>
> > +static int runtoolcmd(lua_State *L, const char *tool_name)
> > +{
> > + lua_getglobal(L, "require");
> > + lua_pushstring(L, tool_name);
> > + if (lua_pcall(L, 1, 1, 0)) {
> > + const char *msg = lua_tostring(L, -1);
> > + if (msg) {
> > + if (!strncmp(msg, "module ", 7))
> > + msg = "unknown luaJIT command or tools not installed";
>
> Nit: Use tab here for indentation.
Fixed. Here is the diff:
==============================================================================
diff --git a/src/luajit.c b/src/luajit.c
index f57b7e95..84472464 100644
--- a/src/luajit.c
+++ b/src/luajit.c
@@ -370,7 +370,7 @@ static int runtoolcmd(lua_State *L, const char *tool_name)
const char *msg = lua_tostring(L, -1);
if (msg) {
if (!strncmp(msg, "module ", 7))
- msg = "unknown luaJIT command or tools not installed";
+ msg = "unknown luaJIT command or tools not installed";
l_message(progname, msg);
}
return 1;
==============================================================================
>
> > + l_message(progname, msg);
> > + }
> > + return 1;
> > + }
> > + lua_getglobal(L, "arg");
> > + return report(L, lua_pcall(L, 1, 1, 0));
> > +}
> > +
>
> <snipped>
>
> --
> Best regards,
> Sergey Kaplun
next prev parent reply other threads:[~2023-09-04 9:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-31 11:35 [Tarantool-patches] [PATCH luajit v9 0/2] introduce cli for tools Maxim Kokryashkin via Tarantool-patches
2023-08-31 11:35 ` [Tarantool-patches] [PATCH luajit v9 1/2] tools: add cli flag to run profile dump parsers Maxim Kokryashkin via Tarantool-patches
2023-09-03 9:50 ` Sergey Kaplun via Tarantool-patches
2023-09-04 9:30 ` Maxim Kokryashkin via Tarantool-patches [this message]
2023-09-07 9:41 ` Sergey Bronnikov via Tarantool-patches
2023-09-12 20:03 ` Maxim Kokryashkin via Tarantool-patches
2023-09-14 9:22 ` Sergey Bronnikov via Tarantool-patches
2023-09-18 8:51 ` Maxim Kokryashkin via Tarantool-patches
2023-10-04 8:58 ` Sergey Bronnikov via Tarantool-patches
2023-10-04 11:49 ` Maxim Kokryashkin via Tarantool-patches
2023-10-06 8:26 ` Sergey Bronnikov via Tarantool-patches
2023-11-23 6:33 ` Igor Munkin via Tarantool-patches
2023-08-31 11:35 ` [Tarantool-patches] [PATCH luajit v9 2/2] test: don't skip tool CLI flag for tarantool Maxim Kokryashkin via Tarantool-patches
2023-09-03 9:54 ` Sergey Kaplun via Tarantool-patches
2023-09-07 9:42 ` Sergey Bronnikov via Tarantool-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6sq7pi6oj2l7pthtsw7hmq2nepbesy4lfgvj2zr37nlbt4nvav@qa2ovqh3i5ee \
--to=tarantool-patches@dev.tarantool.org \
--cc=m.kokryashkin@tarantool.org \
--cc=max.kokryashkin@gmail.com \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit v9 1/2] tools: add cli flag to run profile dump parsers' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox