Searched refs:printf (Results 1 - 25 of 34) sorted by relevance

12

/lxc/src/tests/
H A Dreboot.c41 printf("failed to reboot(%d): %m\n", *cmd);
54 printf("failed to clone: %m\n");
59 printf("unexpected wait error: %m\n");
65 printf("child process exited but was not signaled\n");
70 printf("signal termination is not the one expected\n");
101 printf("Must run as root.\n");
107 printf("Your kernel does not have the container reboot patch\n");
113 printf("reboot(LINUX_REBOOT_CMD_CAD_ON) should have failed\n");
116 printf("reboot(LINUX_REBOOT_CMD_CAD_ON) has failed as expected\n");
121 printf("reboo
[all...]
H A Dlist.c33 printf("%-10s Counting containers\n", type);
35 printf("%-10s Counted %d containers\n", type, n);
36 printf("%-10s Get container struct only\n", type);
39 printf("Warning: first call returned %d, second %d\n", n, n2);
42 printf("%-10s Got container struct %s\n", type, c->name);
50 printf("%-10s Get names only\n", type);
53 printf("Warning: first call returned %d, second %d\n", n, n2);
55 printf("%-10s Got container name %s\n", type, names[i]);
63 printf("%-10s Get names and containers\n", type);
66 printf("Warnin
[all...]
H A Dmay_control.c26 printf("Usage: %s name [lxcpath]\n", me);
44 printf("You may%s control %s\n", may ? "" : " not", name);
H A Dget_item.c81 printf("lxc.arch returned %d %s\n", ret, v2);
92 printf("lxc.init_uid returned %d %s\n", ret, v2);
103 printf("lxc.init_gid returned %d %s\n", ret, v2);
119 printf("lxc.utsname returned %d\n", len);
138 printf("lxc.utsname returned %d %s\n", len, alloced);
150 printf("lxc.mount.entry returned %d %s\n", ret, v2);
161 printf("lxc.aa_profile returned %d %s\n", ret, v2);
204 printf("%d: get_config_item(lxc.cap.drop) returned %d %s\n", __LINE__, ret, v2);
210 printf("%d: get_config_item(lxc.network) returned %d %s\n", __LINE__, ret, v2);
257 printf("
[all...]
H A Dgetkeys.c58 printf("get_keys returned %d\n%s", ret, v3);
66 printf("get_keys for nic 1 returned %d\n%s", ret, v3);
H A Dcgpath.c190 printf("Running container cgroup tests...Passed\n");
196 printf("Container creation tests...Passed\n");
200 printf("Container creation with LXCPATH tests...Passed\n");
H A Dlocktests.c77 printf("%d exited normally with exit code %d\n", pid,
82 printf("%d did not exit normally\n", pid);
H A Daa.c48 printf("yes\n");
53 printf("no\n");
H A Dconcurrent.c216 printf("\nIteration %d/%d maxfd:%d\n", iter, iterations, fd);
221 printf("Executing (%s) for %d containers...\n", modes[i], nthreads);
/lxc/templates/
H A Dlxc-gentoo.in50 printf "Attempting to obtain an exclusive lock (timeout: %s sec) named \"%s\"...\n" "${timeout}" "$lock_name"
55 printf " => unable to obtain lock, aborting.\n"
58 printf " => done.\n"
61 printf " => Executing \"%s\"\n" "$*"
71 printf "\n[the last exit code leading to this death was: %s ]\n" "$?"
74 printf "$@"
81 printf "### set_default_arch: default arch/variant autodetect...\n"
94 printf " => warn: unexpected arch:${arch} let me knows if it works :)\n"
97 printf " => Got: arch=%s variant=%s\n" "${arch}" "${variant}"
117 printf "###### cache_setu
[all...]
/lxc/src/lxc/tools/
H A Dlxc_config.c46 printf("Usage: %s -l: list all available configuration items\n", me);
47 printf(" %s item: print configuration item\n", me);
56 printf("%s\n", i->name);
73 printf("%s\n", value);
75 printf("%s is not set.\n", argv[1]);
79 printf("Unknown configuration item: %s\n", argv[1]);
H A Dlxc_clone.c77 printf("Usage: %s [-s] [-B backingstore] [-L size[unit]] [-K] [-M] [-H]\n", me);
78 printf(" [-p lxcpath] [-P newlxcpath] orig new\n");
79 printf("\n");
80 printf(" -s: snapshot rather than copy\n");
81 printf(" -B: use specified new backingstore. Default is the same as\n");
82 printf(" the original. Options include aufs, btrfs, lvm, overlayfs, \n");
83 printf(" dir and loop\n");
84 printf(" -L: for blockdev-backed backingstore, use specified size * specified\n");
85 printf(" unit. Default size is the size of the source blockdev, default\n");
86 printf(" uni
[all...]
H A Dlxc_usernsexec.c60 printf("usage: %s [-h] [-m <uid-maps>] -- [command [arg ..]]\n", name);
61 printf("\n");
62 printf(" -h this message\n");
63 printf("\n");
64 printf(" -m <uid-maps> uid maps to use\n");
65 printf("\n");
66 printf(" uid-maps: [u|g|b]:ns_id:host_id:range\n");
67 printf(" [u|g|b]: map user id, group id, or both\n");
68 printf(" ns_id: the base id in the new namespace\n");
69 printf(" host_i
[all...]
H A Dlxc_info.c172 printf("%-15s %s\n", "Link:", ifname);
183 printf("%-15s %s\n", " TX bytes:", buf);
192 printf("%-15s %s\n", " RX bytes:", buf);
198 printf("%-15s %s\n", " Total bytes:", buf);
214 printf("%-15s %.2f seconds\n", "CPU use:", seconds);
216 printf("%-15s %s\n", "CPU use:", buf);
236 printf("%-15s %s\n", "BlkIO use:", buf);
255 printf("%-15s %s\n", lxstat[i].name, buf);
264 printf("%-15s %d\n", key, value);
267 printf("
[all...]
H A Dlxc_ls.c763 printf("%s\n", m->name ? m->name : "-");
765 printf("%-*s", lht->name_length, m->name ? m->name : "-");
768 printf("\n");
771 printf(" ");
777 printf("\n");
807 printf("%-*s ", lht->name_length, "NAME");
809 printf("%-*s ", lht->state_length, "STATE");
811 printf("%-*s ", lht->init_length, "PID");
813 printf("%-*s ", lht->ram_length + 2, "RAM");
815 printf("
[all...]
H A Dlxc-top.lua40 function printf(...) function
168 printf(TERMRVRS .. TERMBOLD)
169 printf("%-15s %8s %8s %8s %10s %10s", "Container", "CPU", "CPU", "CPU", "BlkIO", "Mem")
170 if (stats_total.kmem_used > 0) then printf(" %10s", "KMem") end
171 printf("\n")
173 printf("%-15s %8s %8s %8s %10s %10s", "Name", "Used", "Sys", "User", "Total", "Used")
174 if (stats_total.kmem_used > 0) then printf(" %10s", "Used") end
175 printf("\n")
176 printf(TERMNORM)
180 printf("
[all...]
H A Dlxc_top.c291 printf(TERMRVRS TERMBOLD);
292 printf("%-18s %12s %12s %12s %14s %10s", "Container", "CPU", "CPU", "CPU", "BlkIO", "Mem");
294 printf(" %10s", "KMem");
295 printf("\n");
297 printf("%-18s %12s %12s %12s %14s %10s", "Name", "Used", "Sys", "User", "Total", "Used");
299 printf(" %10s", "Used");
300 printf("\n");
301 printf(TERMNORM);
314 printf("%-18.18s %12.2f %12.2f %12.2f %14s %10s",
323 printf("
[all...]
H A Dlxc_monitor.c182 printf("'%s' changed state to [%s]\n",
186 printf("'%s' exited with status [%d]\n",
H A Dlxc_autostart.c450 printf("%s\n", c->name);
467 printf("%s\n", c->name);
482 printf("%s %d\n", c->name,
500 printf("%s %d\n", c->name,
H A Dlxc_snapshot.c238 printf("No snapshots\n");
243 printf("%s (%s) %s\n", s[i].name, s[i].lxcpath, s[i].timestamp);
294 printf("%s", line);
H A Dlxc_cgroup.c132 printf("%*s", ret, buffer);
H A Dlxc_destroy.c124 printf("Destroyed container %s including snapshots \n", my_args.name);
128 printf("Destroyed container %s\n", my_args.name);
H A Dlxc_stop.c149 printf("Reboot did not complete before timeout\n");
/lxc/src/lua-lxc/test/
H A Dapitest.lua35 function printf(...) function
45 printf(os.date("%Y-%m-%d %T "))
46 printf(...)
47 printf("\n")
52 printf(...)
/lxc/src/lxc/cgroups/
H A Dcgfsng.c1001 printf("Cgroup information:\n");
1002 printf(" container name: %s\n", d->name ? d->name : "(null)");
1003 printf(" lxc.cgroup.use: %s\n", cgroup_use ? cgroup_use : "(null)");
1004 printf(" lxc.cgroup.pattern: %s\n", d->cgroup_pattern ? d->cgroup_pattern : "(null)");
1005 printf(" cgroup: %s\n", d->container_cgroup ? d->container_cgroup : "(null)");
1014 printf(" No hierarchies found.");
1017 printf(" Hierarchies:\n");
1021 printf(" %d: base_cgroup %s\n", i, (*it)->base_cgroup ? (*it)->base_cgroup : "(null)");
1022 printf(" mountpoint %s\n", (*it)->mountpoint ? (*it)->mountpoint : "(null)");
1023 printf(" controller
[all...]

Completed in 35 milliseconds

12