From: Srikanth Yalavarthi <syalavarthi@marvell.com>
To: David Marchand <david.marchand@redhat.com>,
"dev@dpdk.org" <dev@dpdk.org>
Cc: Anup Prabhu <aprabhu@marvell.com>,
Srikanth Yalavarthi <syalavarthi@marvell.com>
Subject: RE: [EXT] Re: [PATCH 1/2] app/mldev: fix build with debug
Date: Mon, 20 Mar 2023 11:29:03 +0000 [thread overview]
Message-ID: <CO6PR18MB393912099624B61645A27E8CAE809@CO6PR18MB3939.namprd18.prod.outlook.com> (raw)
In-Reply-To: <CAJFAV8whz=7OVwTCdJGqBKCdy+3bfBNGepU4OHW56iu5=O5qHw@mail.gmail.com>
> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: 20 March 2023 16:11
> To: dev@dpdk.org
> Cc: Srikanth Yalavarthi <syalavarthi@marvell.com>; Anup Prabhu
> <aprabhu@marvell.com>
> Subject: [EXT] Re: [PATCH 1/2] app/mldev: fix build with debug
>
> External Email
>
> ----------------------------------------------------------------------
> On Mon, Mar 20, 2023 at 11:26 AM David Marchand
> <david.marchand@redhat.com> wrote:
> > ../app/test-mldev/test_inference_common.c:952:48: note: using the range
> > [-2147483648, 2147483647] for directive argument
> > 952 | snprintf(str, sizeof(str) - 1, "%s.%d",
> > | ^~~~~~~
> > t->cmn.opt->filelist[req->fid].output, obj_idx);
> > ../app/test-mldev/test_inference_common.c:952:17: note: ‘snprintf’
> > output between 3 and 4108 bytes into a destination of size 4095
> > 952 | snprintf(str, sizeof(str) - 1, "%s.%d",
> > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > t->cmn.opt->filelist[req->fid].output, obj_idx);
>
> [...]
>
> >
> > Fix unsigned integer format, and switch to dynamic allocations.
> >
>
> [...]
>
> > @@ -943,14 +948,20 @@ ml_request_finish(struct rte_mempool *mp, void
> > *opaque, void *obj, unsigned int
> > dump_output_fail:
> > if (t->cmn.opt->debug) {
> > /* dump quantized output buffer */
> > - snprintf(str, PATH_MAX, "%s.q.%d", t->cmn.opt->filelist[req-
> >fid].output, obj_idx);
> > - ML_OPEN_WRITE_GET_ERR(str, req->output, model->out_qsize,
> error);
> > + if (asprintf(&dump_path, "%s.q.%d",
> > + t->cmn.opt->filelist[req->fid].output,
>
> Sent the wrong patch... I forgot to add the change (fixing with %u) when
> amending the commitlog.
Acked with the format specifier changes. %d to be replaced with %u.
Acked-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
>
>
> > + obj_idx) == -1)
> > + return;
> > + ML_OPEN_WRITE_GET_ERR(dump_path, req->output, model-
> >out_qsize, error);
> > + free(dump_path);
> > if (error)
> > return;
> >
>
>
> --
> David Marchand
next prev parent reply other threads:[~2023-03-20 11:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 10:26 David Marchand
2023-03-20 10:26 ` [PATCH 2/2] ci: test compilation " David Marchand
2023-03-20 10:40 ` [PATCH 1/2] app/mldev: fix build " David Marchand
2023-03-20 11:29 ` Srikanth Yalavarthi [this message]
2023-03-20 12:18 ` [PATCH v2 " David Marchand
2023-03-20 12:18 ` [PATCH v2 2/2] ci: test compilation with debug in GHA David Marchand
2023-03-20 13:30 ` Thomas Monjalon
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=CO6PR18MB393912099624B61645A27E8CAE809@CO6PR18MB3939.namprd18.prod.outlook.com \
--to=syalavarthi@marvell.com \
--cc=aprabhu@marvell.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).