diff options
author | John Spencer <maillist-alsa@barfooze.de> | 2012-04-24 12:58:48 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-24 15:38:45 +0200 |
commit | 1d3f7975f920f47e6a8a324f547da2180e64171a (patch) | |
tree | dc22aef6a52f9ece34553ed7156ee9482d5b882e /test | |
parent | bb5c49fa4160ec1d819fb03fc8dfb5387dad0522 (diff) |
Fix invalid long long format specifier
Per POSIX:
L Specifies that a following a, A, e, E, f, F, g, or G conversion
specifier applies to a long double argument.
L is only intended to be used with long doubles, not long long ints.
the proper way is to use "ll" instead.
Signed-off-by: John Spencer <maillist-alsa@barfooze.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/midiloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/midiloop.c b/test/midiloop.c index ee2e563b..d6548b59 100644 --- a/test/midiloop.c +++ b/test/midiloop.c @@ -175,7 +175,7 @@ int main(int argc, char** argv) printf("output.status.xruns = %zi\n", snd_rawmidi_status_get_xruns(ostat)); diff = timediff(end, start); - printf("Time diff: %Liusec (%Li bytes/sec)\n", diff, ((long long)opos * 1000000) / diff); + printf("Time diff: %lliusec (%lli bytes/sec)\n", diff, ((long long)opos * 1000000) / diff); if (verbose) { fprintf(stderr,"Closing\n"); |