diff mbox

[Xen-devel,v10,01/19] xenctx: Correct FMT_??B_WORD for arm64.

Message ID 1396552029-21318-2-git-send-email-dslutz@verizon.com
State Accepted
Commit 28c8460abd6c453d46516c6396d42d667dc339b9
Headers show

Commit Message

Don Slutz April 3, 2014, 7:06 p.m. UTC
From: Ian Campbell <ian.campbell@citrix.com>

These should all be unsigned long long to match various variables used
in the
code, same as x86_64.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 tools/xentrace/xenctx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Don Slutz April 3, 2014, 8:53 p.m. UTC | #1
On 04/03/14 15:06, Don Slutz wrote:
> From: Ian Campbell <ian.campbell@citrix.com>
>
> These should all be unsigned long long to match various variables used
> in the
> code, same as x86_64.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

I think I can add:

Reviewed-by: Don Slutz <dslutz@verizon.com>

And it I may also have forgotten to add:

Signed-off-by: Don Slutz <dslutz@verizon.com>

    -Don Slutz

> ---
>   tools/xentrace/xenctx.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c
> index 7275a00..47712ab 100644
> --- a/tools/xentrace/xenctx.c
> +++ b/tools/xentrace/xenctx.c
> @@ -57,8 +57,8 @@ typedef uint64_t guest_word_t;
>   #elif defined(__aarch64__)
>   #define NO_TRANSLATION
>   typedef uint64_t guest_word_t;
> -#define FMT_32B_WORD "%08lx"
> -#define FMT_64B_WORD "%016lx"
> +#define FMT_32B_WORD "%08llx"
> +#define FMT_64B_WORD "%016llx"
>   #endif
>   
>   struct symbol {
Ian Campbell April 4, 2014, 8:46 a.m. UTC | #2
On Thu, 2014-04-03 at 16:53 -0400, Don Slutz wrote:
> On 04/03/14 15:06, Don Slutz wrote:
> > From: Ian Campbell <ian.campbell@citrix.com>
> >
> > These should all be unsigned long long to match various variables used
> > in the
> > code, same as x86_64.
> >
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> 
> I think I can add:
> 
> Reviewed-by: Don Slutz <dslutz@verizon.com>
> 
> And it I may also have forgotten to add:
> 
> Signed-off-by: Don Slutz <dslutz@verizon.com>

I think S-o-b is something of a super-set of reviewed by, so I just
added that one. S-o-b is correct when you are forwarding a patch from
someone else, either via DCO (b) or (c), in this case (c) since you
didn't modify the patch.

Anyway, this seems to build on both classes of ARM so I've committed the
entire thing. Thanks!

Ian.
diff mbox

Patch

diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c
index 7275a00..47712ab 100644
--- a/tools/xentrace/xenctx.c
+++ b/tools/xentrace/xenctx.c
@@ -57,8 +57,8 @@  typedef uint64_t guest_word_t;
 #elif defined(__aarch64__)
 #define NO_TRANSLATION
 typedef uint64_t guest_word_t;
-#define FMT_32B_WORD "%08lx"
-#define FMT_64B_WORD "%016lx"
+#define FMT_32B_WORD "%08llx"
+#define FMT_64B_WORD "%016llx"
 #endif
 
 struct symbol {