Use pulongest in aarch64-linux-tdep.c

I tried a build on macOS today and it failed due to a mismatch between
the printf format and the type in aarch64-linux-tdep.c.  This patch
fixes the problem by using pulongest and %s rather than %ld.

gdb/ChangeLog
2018-10-02  Tom Tromey  <tom@tromey.com>

	* aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
This commit is contained in:
Tom Tromey 2018-10-02 16:44:47 -06:00
parent 53c30c89d1
commit 2398abf8bc
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2018-10-02 Tom Tromey <tom@tromey.com>
* aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
2018-10-02 John Darrington <john@darrington.wattle.id.au> 2018-10-02 John Darrington <john@darrington.wattle.id.au>
* NEWS: Mention changed commands. * NEWS: Mention changed commands.

View File

@ -247,8 +247,8 @@ aarch64_linux_sigframe_init (const struct tramp_frame *self,
vq = sve_vq_from_vl (extract_unsigned_integer (buf, 2, byte_order)); vq = sve_vq_from_vl (extract_unsigned_integer (buf, 2, byte_order));
if (vq != tdep->vq) if (vq != tdep->vq)
error (_("Invalid vector length in signal frame %d vs %ld."), vq, error (_("Invalid vector length in signal frame %d vs %s."), vq,
tdep->vq); pulongest (tdep->vq));
if (size >= AARCH64_SVE_CONTEXT_SIZE (vq)) if (size >= AARCH64_SVE_CONTEXT_SIZE (vq))
sve_regs = section + AARCH64_SVE_CONTEXT_REGS_OFFSET; sve_regs = section + AARCH64_SVE_CONTEXT_REGS_OFFSET;