From: Yaroslav <yarikos@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Unexpected complaint
Date: Tue, 2 Apr 2013 10:02:31 +0300 [thread overview]
Message-ID: <CAG3N4d9Bb8tjw74kDic=anePTq46sv6qmnJbBNMw=gkWEW8tEg@mail.gmail.com> (raw)
In-Reply-To: <65e263b9ec88ad6c676a67ccaece92ff@proxima.alt.za>
[-- Attachment #1: Type: text/plain, Size: 622 bytes --]
works as expected if given "%llud" format.
2013/4/2 <lucio@proxima.alt.za>
> The following code triggers a warning:
>
> #include <u.h>
> #include <libc.h>
>
> int main() {
> unsigned long long val = 0;
>
> print("VAL: %llu\n", val);
> return 0;
> }
>
> warning: llu.c:7 format mismatch llu
> UVLONG, arg 2
>
> and produces the damnedest output:
>
> VAL: %
> %(not terminated by a newline).
>
> Something's not right, anybody know what the cause is? And maybe the
> cure?
>
> ++L
>
>
>
--
- Yaroslav
[-- Attachment #2: Type: text/html, Size: 1085 bytes --]
next prev parent reply other threads:[~2013-04-02 7:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-02 6:54 lucio
2013-04-02 7:02 ` Yaroslav [this message]
2013-04-02 7:27 ` lucio
2013-04-02 8:15 ` Charles Forsyth
2013-04-02 8:18 ` lucio
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='CAG3N4d9Bb8tjw74kDic=anePTq46sv6qmnJbBNMw=gkWEW8tEg@mail.gmail.com' \
--to=yarikos@gmail.com \
--cc=9fans@9fans.net \
/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 NNTP newsgroup(s).