9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@9fans.net
Subject: [9fans] Unexpected complaint
Date: Tue,  2 Apr 2013 08:54:21 +0200	[thread overview]
Message-ID: <65e263b9ec88ad6c676a67ccaece92ff@proxima.alt.za> (raw)

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




             reply	other threads:[~2013-04-02  6:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-02  6:54 lucio [this message]
2013-04-02  7:02 ` Yaroslav
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=65e263b9ec88ad6c676a67ccaece92ff@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --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).