diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-05-09 00:31:09 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-10 02:26:54 +0200 |
commit | 3295dbbe1cacfa59162c633aadd10db7614a98f4 (patch) | |
tree | 684cbff9eff6425c11c61a96a6a844689e279134 /utils/rpctrace.c | |
parent | 88423259acc98ed389025d91985945ae561fc468 (diff) | |
download | hurd-3295dbbe1cacfa59162c633aadd10db7614a98f4.tar.gz hurd-3295dbbe1cacfa59162c633aadd10db7614a98f4.tar.bz2 hurd-3295dbbe1cacfa59162c633aadd10db7614a98f4.zip |
utils: Port to x86_64
Message-Id: <20230508213136.608575-15-bugaevc@gmail.com>
Diffstat (limited to 'utils/rpctrace.c')
-rw-r--r-- | utils/rpctrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c index f4d103e8..589ce8f8 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -961,7 +961,7 @@ wrap_all_threads (task_t task) struct sender_info *thread_send_wrapper; struct receiver_info *thread_receiver_info; thread_t *threads; - size_t nthreads; + mach_msg_type_number_t nthreads; error_t err; err = task_threads (task, &threads, &nthreads); @@ -1134,7 +1134,7 @@ trace_and_forward (mach_msg_header_t *inp, mach_msg_header_t *outp) MACH_MSGH_BITS_REMOTE (inp->msgh_bits), is_notification (inp)? MACH_MSG_TYPE_MOVE_SEND_ONCE: info->type) | MACH_MSGH_BITS_OTHER (inp->msgh_bits); - inp->msgh_local_port = ports_payload_get_name ((unsigned int) info); + inp->msgh_local_port = ports_payload_get_name ((uintptr_t) info); } } else @@ -1538,7 +1538,7 @@ print_data (mach_msg_type_name_t type, /* We encountered a non-printable character. Print anything that has not been printed so far. */ if (p < q) - fprintf (ostream, "%.*s", q - p, p); + fprintf (ostream, "%.*s", (int) (q - p), p); char c = escape_sequences[*((const unsigned char *) q)]; if (c) @@ -1552,7 +1552,7 @@ print_data (mach_msg_type_name_t type, /* Print anything that has not been printed so far. */ if (p < q) - fprintf (ostream, "%.*s", q - p, p); + fprintf (ostream, "%.*s", (int) (q - p), p); fprintf (ostream, "\""); return; |