search for: print_

Displaying 18 results from an estimated 18 matches for "print_".

Did you mean: printk
2009 Aug 17
2
[PATCH libguestfs] generator.ml: do not emit unused print_*_list functions
I see the following warnings: cmds.c:934:13: warning: 'print_int_bool_list' defined but not used cmds.c:1093:13: warning: 'print_stat_list' defined but not used cmds.c:1124:13: warning: 'print_statvfs_list' defined but not used cmds.c:1171:13: warning: 'print_version_list' defined but not used This patch makes it so we don...
2009 Aug 17
1
[PATCH libguestfs] generator.ml: do not emit unused print_* functions
One final set: cmds.c:968:13: warning: 'print_lvm_pv' defined but not used cmds.c:1012:13: warning: 'print_lvm_vg' defined but not used cmds.c:1055:13: warning: 'print_lvm_lv' defined but not used cmds.c:1142:13: warning: 'print_dirent' defined but not used cmds.c:1196:13: warning: 'print_xattr...
2002 Jul 29
5
HOWTO Create a PDF Writer in samba
Hi all, Thought I'd post this to the list as I found a better way of doing it. Nice to have for posterity. Please include it in the source of samba if you wish - I hereby license it under GPL 1. install ghostscript (most distributions include it anyway) 2. put the following in the file /usr/sbin/pdfprint and make it executable by whatever your guest user for samba is : #!/bin/bash
2016 Feb 24
3
[PATCH 1/3] src: generate code for printing contents of structs
...tils /stamp-h1 /sysprep/.depend diff --git a/generator/c.ml b/generator/c.ml index 417e2bc..9af4529 100644 --- a/generator/c.ml +++ b/generator/c.ml @@ -1204,6 +1204,130 @@ and generate_client_structs_cleanup () = ) structs +(* Generate structs-print.c file. *) +and generate_client_structs_print_c () = + generate_header CStyle LGPLv2plus; + + pr "\ +#include <config.h> + +#include <inttypes.h> + +#include \"c-ctype.h\" + +#include \"guestfs.h\" +#include \"structs-print.h\" + +"; + + let write_structs = + List.iter ( + fun { s_n...
2011 Dec 16
2
[LLVMdev] striping of stdio information in llvm-gcc and clang
...printf(stderr, "Error!\n"); return 0; } I did the following on linux to cross-compile it for Sparc architecture: clang -m32 -c print.c -emit-llvm -o print.bc (or llvm-gcc -m32 -c print.c -emit-llvm -o print.bc) llvm-dis < print.bc -o print2.bc llc -march=sparc -mcpu=v8 print2.bc -o print_s.s if I compile it on Sparc using gcc 3.4 gcc print_s.s -o print_linux it gives me the following error: Undefined first referenced symbol in file stderr /var/tmp//ccGa4Zxh.o ld: fatal: Symbol referencing errors. No ou...
2009 Aug 21
9
enable -Werror and all of gcc's warning options
Here is a bunch of small patches to make fish/ build with most warnings enabled: [1/9] edit.c: avoid warning about signed/unsigned comparison [2/9] fish.c: avoid warnings [3/9] tilde.c: avoid a warning [4/9] fish.c: avoid "assignment discards qualifiers..." warning [5/9] fish.c: avoid signed/unsigned-comparison warning [6/9] fish.c: don't perform arithmetic on void*
2011 Jul 07
5
[PATCH v1 0/2] Btrfs-progs: commands "resolve inode" and "resolve logical"
The kernel patch series just sent (Subject: "Btrfs: scrub: print path to corrupted files and trigger nodatasum fixup") introduces two new ioctls to do in-kernel filesystem path construction. This series provides the corresponding userspace changes, adding two new commands to the btrfs utility: -- btrfs resolve inode [-v] <inode> <path> resolves an <inode> to all
2015 Jul 02
0
[PATCH] Fix various -Wformat problems.
...pr " return -1;\n"; pr " }\n"; diff --git a/generator/fish.ml b/generator/fish.ml index 05bbdad..6f68e65 100644 --- a/generator/fish.ml +++ b/generator/fish.ml @@ -249,10 +249,10 @@ Guestfish will prompt for these separately." pr "print_%s_list (struct guestfs_%s_list *%ss)\n" typ typ typ; pr "{\n"; - pr " unsigned int i;\n"; + pr " size_t i;\n"; pr "\n"; pr " for (i = 0; i < %ss->len; ++i) {\n" typ; - pr " printf (\"[%%d] =...
2015 Jul 02
0
[PATCH v2] Fix various -Wformat problems.
...pr " return -1;\n"; pr " }\n"; diff --git a/generator/fish.ml b/generator/fish.ml index 05bbdad..6f68e65 100644 --- a/generator/fish.ml +++ b/generator/fish.ml @@ -249,10 +249,10 @@ Guestfish will prompt for these separately." pr "print_%s_list (struct guestfs_%s_list *%ss)\n" typ typ typ; pr "{\n"; - pr " unsigned int i;\n"; + pr " size_t i;\n"; pr "\n"; pr " for (i = 0; i < %ss->len; ++i) {\n" typ; - pr " printf (\"[%%d] =...
2019 Jul 01
0
[PATCH 1/6] p2v: move kernel config to perl script
...9;file=s' => \$filename, + 'output=s' => \$output, + 'help' => sub { pod2usage(1); }, +) or pod2usage(2); +die "$progname: Option --file not specified.\n" unless $filename; +# die "$progname: Option --output not specified.\n" unless $output; + +sub print_generated_header { + my $fh = shift; + print $fh <<"EOF"; +/* libguestfs generated file + * WARNING: THIS FILE IS GENERATED FROM THE FOLLOWING FILES: + * $filename + * ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST. + */ + +EOF +} + +sub generate_config_struct { + my ($fh...
2018 Jun 29
3
p2v: Various cleanups.
These are a prelude to fixing https://bugzilla.redhat.com/show_bug.cgi?id=1590220 A lot of the virt-p2v configuration code was duplicated manually. These changes make sure that most of it is generated. Rich.
2019 Jul 01
8
[PATCH 0/6] p2v: start making it independent
As preliminary steps in splitting virt-p2v to an own repository, start making p2v more independent within libguestfs. This is accomplished by the following changes: - generate the p2v kernel config sources & docs at build time using a Perl script, rather than the generator (so no need for OCaml when building from git, and no generated sources in dist tarballs) - create two local test
2009 Aug 24
5
[0/5] guestfish: detect stdout-write failure
Nearly any program that writes to standard output can benefit from this sort of fix. Without it, running e.g., ./guestfish --version > /dev/full would exit successfully, even though it got ENOSPC when writing to the full device. That means regular output redirected to a file on a full partition may also fail to be written, and the error ignored. Before: $ guestfish --version >
2016 Sep 02
6
[PATCH 0/4] generator: Some work to split large C files
By splitting up large C files we can make parallel compiles a bit faster. Rich.
2012 Oct 30
5
[PATCH v3 0/5] Add symbol versioning.
This is a simpler patch series to add symbol versioning. I have pushed patches 1-3 upstream. Rich.
2012 Oct 30
7
[PATCH v2 0/7] Add symbol versioning (now working).
This rather more complex patch series adds symbol versioning (7/7 shows it in action). This works for me, tested by running old and new virt-inspector binaries against the new library. Rich.
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...*stderror, char * const* const argv) (*stderror)[se_size] = '\0'; se_size--; while (se_size >= 0 && (*stderror)[se_size] == '\n') - (*stderror)[se_size--] = '\0'; + (*stderror)[se_size--] = '\0'; } } @@ -722,7 +722,7 @@ print_shell_quote (FILE *stream, const void *const *args) { #define SAFE(c) (isalnum((c)) || \ - (c) == '/' || (c) == '-' || (c) == '_' || (c) == '.') + (c) == '/' || (c) == '-' || (c) == '_' || (c) == '...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is time to remove it from libguestfs. [1] https://github.com/libguestfs/virt-p2v [2] http://download.libguestfs.org/virt-p2v/ Pino Toscano (2): Remove virt-p2v Remove remaining virt-p2v bits .gitignore | 4 - Makefile.am | 7 +- bash/Makefile.am