Displaying 20 results from an estimated 6003 matches for "printf".
Did you mean:
printk
2006 Oct 13
0
Wine release 0.9.23
This is release 0.9.23 of Wine, a free implementation of Windows on Unix.
What's new in this release:
- Massive update of printf formats for Win64 compatibility.
- Dynamic drive support on MacOSX.
- Still more MSI fixes and improvements.
- Lots of bug fixes.
Because of lags created by using mirrors, this message may reach you
before the release is available at the public sites. The sources will
be available from the f...
2007 May 25
0
Patch -- SVN revision in the version string
...t --------------
Diffs between last version checked in and current workfile(s):
Index: clients/upsc.c
===================================================================
--- clients/upsc.c (revision 916)
+++ clients/upsc.c (working copy)
@@ -27,7 +27,7 @@
static void help(const char *prog)
{
- printf("Network UPS Tools upsc %s\n\n", UPS_VERSION);
+ printf("Network UPS Tools upsc %s\n\n", upsversion());
printf("usage: %s -l | -L [<hostname>[:port]]\n", prog);
printf(" %s <ups> [<variable>]\n", prog);
@@ -223,7 +223,7 @@
/*...
2011 Dec 21
2
[PATCH] xenpm: assorted adjustments
...ared via memset()
so far
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/tools/misc/xenpm.c
+++ b/tools/misc/xenpm.c
@@ -87,20 +87,20 @@ static void print_cxstat(int cpuid, stru
cxstat->idle_time/1000000UL);
for ( i = 0; i < cxstat->nr; i++ )
{
- printf("C%d : transition [%020"PRIu64"]\n",
+ printf("C%-20d: transition [%20"PRIu64"]\n",
i, cxstat->triggers[i]);
- printf(" residency [%020"PRIu64" ms]\n",
+ prin...
2020 Oct 06
2
[PATCH libnbd] info: Write output atomically.
...probe_content = false;
+ /* Try to write output atomically. We spool output into a
+ * memstream, pointed to by fp, and write it all at once at the end.
+ * On error nothing should be printed on stdout.
+ */
+ fp = open_memstream (&output, &output_len);
+ if (fp == NULL) {
+ fprintf (stderr, "%s: ", progname);
+ perror ("open_memstream");
+ exit (EXIT_FAILURE);
+ }
+
/* Open the NBD side. */
nbd = nbd_create ();
if (nbd == NULL) {
@@ -250,7 +264,7 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}
- printf ("%"...
2012 Mar 10
3
problem: The decoded frame is not as the original one
...SpeexBits decBits;
void *dec_state;
short decFrame[FRAME_SIZE];
/*===========END ===============================*/
int z=0;
int frame_size;
int main (int argc,char **argv)
{
for( z=0;z<160;z++)
??? {
??? frame[z]=intel_theme[z];? //array of short from "intel16" header file
??? }
?printf("\n =================================== \n");
?for( z=0;z<160;z++)
??? {
??????? printf("%i",frame[z]);
??? printf ("? ");
??????? }
/*===============================ENCODING==============================================*/
???? speex_bits_init(&bits);
???? en...
2018 Aug 21
0
[PATCH 2/2] OCaml tools: add output selection for --machine-readable
...dline.ml b/builder/cmdline.ml
index 9c854ed49..1771ef046 100644
--- a/builder/cmdline.ml
+++ b/builder/cmdline.ml
@@ -218,12 +218,12 @@ read the man page virt-builder(1).
(* No arguments and machine-readable mode? Print some facts. *)
if args = [] && machine_readable () then (
- printf "virt-builder\n";
- printf "arch\n";
- printf "config-file\n";
- printf "customize\n";
- printf "json-list\n";
- if Pxzcat.using_parallel_xzcat () then printf "pxzcat\n";
+ machine_readable_printf "virt-builder\n&quo...
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
..._or_no; then
mount_live \
- && /usr/sbin/ovirt-config-boot /live "${bootparams}"
+ && /usr/sbin/ovirt-config-boot /live "${bootparams}"
rc=$?
break
- elif [ "$r" == "N" ]; then
+ else
printf "\nExiting back to the menu\n"
rc=99
break
diff --git a/scripts/ovirt-config-collectd b/scripts/ovirt-config-collectd
index 236ddaa..11811fd 100755
--- a/scripts/ovirt-config-collectd
+++ b/scripts/ovirt-config-collectd
@@ -67,23 +67,28 @@ prompt_user() {
printf...
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
.../* Show a lot of output or not */
+bool quiet;
+
#endif
$ diff -u msetup.c.old msetup.c
--- msetup.c.old 2009-09-12 22:24:59.000000000 +0200
+++ msetup.c 2009-09-13 00:34:24.000000000 +0200
@@ -58,10 +58,10 @@
if (regs.eax.l != 0x534d4150 || copied < 20)
break;
-
- printf("e820: %08x%08x %08x%08x %d\n",
- (uint32_t) (buf->base >> 32), (uint32_t) buf->base,
- (uint32_t) (buf->len >> 32), (uint32_t) buf->len, buf->type);
+ if (!quiet)
+ printf("e820: %08x%08x %08x%08x %d\n",
+ (uint...
2017 Jan 19
4
[PATCH] Fix cppcheck warnings
...treader.c
index 386f420..7554385 100644
--- a/src/libFLAC/bitreader.c
+++ b/src/libFLAC/bitreader.c
@@ -306,7 +306,7 @@ void FLAC__bitreader_dump(const FLAC__BitReader *br, FILE *out)
if(i < br->consumed_words || (i == br->consumed_words && j < br->consumed_bits))
fprintf(out, ".");
else
- fprintf(out, "%01u", br->buffer[i] & ((brword)1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0);
+ fprintf(out, "%01d", br->buffer[i] & ((brword)1 << (FLAC__BITS_PER_WORD-j-1)) ? 1:0);
fprintf(out, "\n");
}...
2013 Dec 03
2
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
Hi,
I am trying to print two strings using printf. I have tried various
things, but keep getting this error:
llc: printf.ll:4:11: error: '@printf' defined with type 'i32 (i8*,
...)*'
%1 = call i32 @printf(i8* null, i8*, i8* null)
The code is:
declare i32 @printf(i8* nocapture readonly, ...) nounwind
define i3...
2013 Dec 03
2
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
...ut what
it is. Thanks for your suggestion, though.
-- Mikael
2013/12/3 Eli Bendersky <eliben at google.com>
>
>
>
> On Tue, Dec 3, 2013 at 2:29 PM, Mikael Lyngvig <mikael at lyngvig.org> wrote:
>
>> Hi,
>>
>> I am trying to print two strings using printf. I have tried various
>> things, but keep getting this error:
>>
>> llc: printf.ll:4:11: error: '@printf' defined with type 'i32 (i8*,
>> ...)*'
>> %1 = call i32 @printf(i8* null, i8*, i8* null)
>>
>> The code is:
>>
>&...
2012 Apr 25
1
forwarding packets to service in same host without using loopback network
...q_data *tb)
{
int id = 0;
struct nfqnl_msg_packet_hdr *ph;
struct nfqnl_msg_packet_hw *hwph;
u_int32_t mark, ifi;
int ret;
unsigned char *data;
ph = nfq_get_msg_packet_hdr (tb);
if (ph)
{
id = ntohl (ph->packet_id);
printf ("hw_protocol=0x%04x hook=%u id=%u ",
ntohs (ph->hw_protocol), ph->hook, id);
}
hwph = nfq_get_packet_hw (tb);
if (hwph)
{
int i, hlen = ntohs (hwph->hw_addrlen);
printf ("hw_src_addr=");
for (i = 0;...
2014 Nov 10
0
[PATCH] Update documentation for new compression presets
...</td> <td>0</td> <td>6</td> <td>0</td> </tr>
* </table>
*
* \default \c 5
diff --git a/src/flac/main.c b/src/flac/main.c
index 2eb8643..44894ac 100644
--- a/src/flac/main.c
+++ b/src/flac/main.c
@@ -1274,8 +1274,8 @@ void show_help(void)
printf(" -4, --compression-level-4 Synonymous with -l 8 -b 4096 -M -r 4\n");
printf(" -5, --compression-level-5 Synonymous with -l 8 -b 4096 -m -r 5\n");
printf(" -6, --compression-level-6 Synonymous with -l 8 -b 4096 -m -r 6\n");
- printf(&q...
2010 Mar 23
1
[PATCH] Ensures that persist and unpersist work with relative paths.
..."$@"; do
+ local filename=$(readlink -f $p)
local persist_it=true
# ensure that, if this is a directory
# that it's not already persisted
- if [ -d $p ]; then
- if [ -d /config$p ]; then
- printf "Directory already persisted: $p\n"
+ if [ -d $filename ]; then
+ if [ -d /config$filename ]; then
+ printf "Directory already persisted: ${filename}\n"
printf "You need to unpersist its child directories and...
2013 Dec 03
0
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
This code:
declare i32 @printf(i8* nocapture readonly, ...) nounwind
define i32 @bar(i8* %c, i32 %i) #0 {
entry:
%call = tail call i32 (i8*, ...)* @printf(i8* %c, i8* %c)
ret i32 %call
}
Is accepted without complaints by close-to-trunk llc on my Ubuntu machine.
Eli
On Tue, Dec 3, 2013 at 2:58 PM, Mikael Lyngvig <mika...
2013 Dec 03
0
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
On Tue, Dec 3, 2013 at 2:29 PM, Mikael Lyngvig <mikael at lyngvig.org> wrote:
> Hi,
>
> I am trying to print two strings using printf. I have tried various
> things, but keep getting this error:
>
> llc: printf.ll:4:11: error: '@printf' defined with type 'i32 (i8*,
> ...)*'
> %1 = call i32 @printf(i8* null, i8*, i8* null)
>
> The code is:
>
> declare i32 @printf(i8* nocap...
2019 Jul 01
0
[PATCH 1/6] p2v: move kernel config to perl script
...+ generate_config_struct($fh, $field->name . "_config", $field->elements);
+ }
+ }
+
+ # Now generate this struct.
+ print $fh "struct $name {\n";
+ foreach my $field (@$fields) {
+ my $type = ref($field);
+ if ($type eq 'ConfigSection') {
+ printf $fh " struct %s_config %s;\n", $field->name, $field->name;
+ } elsif ($type eq 'ConfigString') {
+ printf $fh " char *%s;\n", $field->name;
+ } elsif ($type eq 'ConfigInt') {
+ printf $fh " int %s;\n", $field->name;
+ }...
2013 Dec 03
2
[LLVMdev] Newbie question: LLVM IR, printf, and varargs
...k (*) after the cast. Or something.
Because I did insert the cast and it didn't work. But NOW it works.
Thank you for spending some time on this - and also for presenting the
solution.
-- Mikael
2013/12/4 Eli Bendersky <eliben at google.com>
> This code:
>
> declare i32 @printf(i8* nocapture readonly, ...) nounwind
>
> define i32 @bar(i8* %c, i32 %i) #0 {
> entry:
> %call = tail call i32 (i8*, ...)* @printf(i8* %c, i8* %c)
> ret i32 %call
> }
>
> Is accepted without complaints by close-to-trunk llc on my Ubuntu machine.
>
> Eli
>
>...
2013 Feb 20
4
[LLVMdev] [RFC] NoBuiltin Attribute
On 2/19/2013 11:11 PM, Chris Lattner wrote:
>
> I still really have no idea what problem you think you are solving.
Dealing with different attributes on different functions.
--- a.c ---
void func_a() {
printf(...);
}
--- b.c ---
void func_b() {
printf(...);
func_a();
}
a.c is compiled with no-builtin-printf, b.c has no such options.
The prototype approach (no-builtin on the prototype of printf) won't
work in case like this, when the no-builtin attributes are not identical
across all the c...
2019 Jan 25
0
[klibc:update-dash] builtin: Reject malformed printf specifications with digits after '*'
...bc.git;a=commit;h=eaf105c1c16e2157ebce8c63a58acca75df65ca9
Author: Patrick Brown <opensource at whoopdedo.org>
AuthorDate: Sun, 6 Dec 2015 15:09:42 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] builtin: Reject malformed printf specifications with digits after '*'
Dash doesn't notice when a format string has digits following a * width
specifier.
$ dash -c 'printf "%*0s " 1 2 && echo FAIL || echo OK'
%10s FAIL
$ bash -c 'printf "%*0s " 1 2 && ech...