From: Alex Williamson <alex.williamson@hp.com>
To: xen-devel@lists.xensource.com
Cc: Christoph Egger <Christoph.Egger@amd.com>
Subject: Re: [Xen-staging] [xen-unstable] ia64, ppc: Remove uses of sprintf().
Date: Tue, 30 Jan 2007 10:03:02 -0700 [thread overview]
Message-ID: <1170176582.10792.101.camel@bling> (raw)
In-Reply-To: <200701301614.l0UGEJgQ026181@latara.uk.xensource.com>
On Tue, 2007-01-30 at 16:14 +0000, Xen staging patchbot-unstable wrote:
> diff -r 300c47bec138 -r bd69e83b65ea xen/arch/ia64/linux-xen/setup.c
> --- a/xen/arch/ia64/linux-xen/setup.c Tue Jan 30 16:09:16 2007 +0000
> +++ b/xen/arch/ia64/linux-xen/setup.c Tue Jan 30 16:14:16 2007 +0000
> @@ -550,7 +550,7 @@ show_cpuinfo (struct seq_file *m, void *
> switch (c->family) {
> case 0x07: memcpy(family, "Itanium", 8); break;
> case 0x1f: memcpy(family, "Itanium 2", 10); break;
> - default: sprintf(family, "%u", c->family); break;
> + default: snprintf(family, sizeof(family), "%u", c->family); break;
> }
What's the purpose of all this "cleanup"? This is just munging files
that we're leveraging from Linux, making updating them later on more
difficult. And these really should have been submitted via the
xen-ia64-devel list.
Alex
--
Alex Williamson HP Open Source & Linux Org.
next parent reply other threads:[~2007-01-30 17:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200701301614.l0UGEJgQ026181@latara.uk.xensource.com>
2007-01-30 17:03 ` Alex Williamson [this message]
2007-01-30 17:35 ` Re: [Xen-staging] [xen-unstable] ia64, ppc: Remove uses of sprintf() Keir Fraser
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=1170176582.10792.101.camel@bling \
--to=alex.williamson@hp.com \
--cc=Christoph.Egger@amd.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.