public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Yihan Dang via Libc-help <libc-help@sourceware.org>
Cc: Yihan Dang <qcloud1223@qq.com>
Subject: Re: Can I use printf in dl-load.c?
Date: Thu, 14 Jan 2021 09:19:45 +0100	[thread overview]
Message-ID: <87k0sgrkv2.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <tencent_0008048C8FA3778CDB0614183CC1FF04D506@qq.com> (Yihan Dang via Libc-help's message of "Thu, 14 Jan 2021 15:04:25 +0800")

* Yihan Dang via Libc-help:

> I'm trying to use printf to get maplength in
> dl-load.c:_dl_map_object_from_fd, and this is how the code looks like:

You need to use _dl_printf.  Please note that it does not support all
formatting directives.

Thanks,
Florian
-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill


  reply	other threads:[~2021-01-14  8:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-14  7:04 Yihan Dang
2021-01-14  8:19 ` Florian Weimer [this message]
2021-01-14  8:31   ` Yihan Dang
2021-01-14  9:08     ` Florian Weimer

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=87k0sgrkv2.fsf@oldenburg2.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-help@sourceware.org \
    --cc=qcloud1223@qq.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 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 read-only IMAP folder(s) and NNTP newsgroup(s).