# Some functions/macros produce messages intended solely for developers
# and maintainers. Do not mark them for translation.
sc_prohibit_gettext_markup:
- @prohibit='\<VIR_(WARN|DEBUG) *\(_\(' \
+ @prohibit='\<VIR_(WARN|INFO|DEBUG) *\(_\(' \
halt='do not mark these strings for translation' \
$(_sc_search_regexp)
switch (siginfo.si_signo) {
case SIGHUP:
- VIR_INFO(_("Reloading configuration on SIGHUP"));
+ VIR_INFO("Reloading configuration on SIGHUP");
virHookCall(VIR_HOOK_DRIVER_DAEMON, "-",
VIR_HOOK_DAEMON_OP_RELOAD, SIGHUP, "SIGHUP", NULL);
if (virStateReload() < 0)
break;
default:
- VIR_INFO(_("Received unexpected signal %d"), siginfo.si_signo);
+ VIR_INFO("Received unexpected signal %d", siginfo.si_signo);
break;
}
VIR_ERROR(_("remoteCheckCertificate: "
"failed to verify client's certificate"));
if (!tls_no_verify_certificate) return -1;
- else VIR_INFO(_("remoteCheckCertificate: tls_no_verify_certificate "
- "is set so the bad certificate is ignored"));
+ else VIR_INFO("remoteCheckCertificate: tls_no_verify_certificate "
+ "is set so the bad certificate is ignored");
}
if (client->tx) {
/* Client is running as root, so disable auth */
if (uid == 0) {
- VIR_INFO(_("Turn off polkit auth for privileged client pid %d from %s"),
+ VIR_INFO("Turn off polkit auth for privileged client pid %d from %s",
pid, client->addrstr);
client->auth = REMOTE_AUTH_NONE;
}
goto authfail;
}
- VIR_INFO(_("Checking PID %d running as %d"), callerPid, callerUid);
+ VIR_INFO("Checking PID %d running as %d", callerPid, callerUid);
rv = snprintf(pidbuf, sizeof pidbuf, "%d", callerPid);
if (rv < 0 || rv >= sizeof pidbuf) {
}
PROBE(CLIENT_AUTH_ALLOW, "fd=%d, auth=%d, username=%s",
client->fd, REMOTE_AUTH_POLKIT, (char *)ident);
- VIR_INFO(_("Policy allowed action %s from pid %d, uid %d"),
+ VIR_INFO("Policy allowed action %s from pid %d, uid %d",
action, callerPid, callerUid);
ret->complete = 1;
client->auth = REMOTE_AUTH_NONE;
goto authfail;
}
- VIR_INFO(_("Checking PID %d running as %d"), callerPid, callerUid);
+ VIR_INFO("Checking PID %d running as %d", callerPid, callerUid);
dbus_error_init(&err);
if (!(pkcaller = polkit_caller_new_from_pid(server->sysbus,
callerPid, &err))) {
}
PROBE(CLIENT_AUTH_ALLOW, "fd=%d, auth=%d, username=%s",
client->fd, REMOTE_AUTH_POLKIT, ident);
- VIR_INFO(_("Policy allowed action %s from pid %d, uid %d, result %s"),
+ VIR_INFO("Policy allowed action %s from pid %d, uid %d, result %s",
action, callerPid, callerUid,
polkit_result_to_string_representation(pkresult));
ret->complete = 1;
src/uml/uml_conf.c
src/uml/uml_driver.c
src/util/authhelper.c
-src/util/bridge.c
src/util/cgroup.c
src/util/command.c
src/util/conf.c
{
unsigned int i;
- VIR_INFO(_("Reloading iptables rules"));
+ VIR_INFO("Reloading iptables rules");
for (i = 0 ; i < driver->networks.count ; i++) {
virNetworkObjLock(driver->networks.objs[i]);
}
VIR_FREE(macTapIfName);
- VIR_INFO(_("Starting up network '%s'"), network->def->name);
+ VIR_INFO("Starting up network '%s'", network->def->name);
network->active = 1;
return 0;
char *stateFile;
char *macTapIfName;
- VIR_INFO(_("Shutting down network '%s'"), network->def->name);
+ VIR_INFO("Shutting down network '%s'", network->def->name);
if (!virNetworkObjIsActive(network))
return 0;
goto cleanup;
}
- VIR_INFO(_("Creating network '%s'"), network->def->name);
+ VIR_INFO("Creating network '%s'", network->def->name);
ret = virGetNetwork(conn, network->def->name, network->def->uuid);
cleanup:
dnsmasqContextFree(dctx);
}
- VIR_INFO(_("Defining network '%s'"), network->def->name);
+ VIR_INFO("Defining network '%s'", network->def->name);
ret = virGetNetwork(conn, network->def->name, network->def->uuid);
cleanup:
}
- VIR_INFO(_("Undefining network '%s'"), network->def->name);
+ VIR_INFO("Undefining network '%s'", network->def->name);
virNetworkRemoveInactive(&driver->networks,
network);
network = NULL;
if (virDomainSaveConfig(driver->configDir,
vm->newDef ? vm->newDef : vm->def) < 0) {
- VIR_INFO(_("Defining domain '%s'"), vm->def->name);
+ VIR_INFO("Defining domain '%s'", vm->def->name);
virDomainRemoveInactive(&driver->domains,
vm);
vm = NULL;
VIR_DOMAIN_EVENT_DEFINED_ADDED :
VIR_DOMAIN_EVENT_DEFINED_UPDATED);
- VIR_INFO(_("Creating domain '%s'"), vm->def->name);
+ VIR_INFO("Creating domain '%s'", vm->def->name);
dom = virGetDomain(conn, vm->def->name, vm->def->uuid);
if (dom) dom->id = vm->def->id;
VIR_DOMAIN_EVENT_UNDEFINED,
VIR_DOMAIN_EVENT_UNDEFINED_REMOVED);
- VIR_INFO(_("Undefining domain '%s'"), vm->def->name);
+ VIR_INFO("Undefining domain '%s'", vm->def->name);
virDomainRemoveInactive(&driver->domains,
vm);
vm = NULL;
pool = NULL;
goto cleanup;
}
- VIR_INFO(_("Creating storage pool '%s'"), pool->def->name);
+ VIR_INFO("Creating storage pool '%s'", pool->def->name);
pool->active = 1;
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid);
}
def = NULL;
- VIR_INFO(_("Defining storage pool '%s'"), pool->def->name);
+ VIR_INFO("Defining storage pool '%s'", pool->def->name);
ret = virGetStoragePool(conn, pool->def->name, pool->def->uuid);
cleanup:
VIR_FREE(pool->configFile);
VIR_FREE(pool->autostartLink);
- VIR_INFO(_("Undefining storage pool '%s'"), pool->def->name);
+ VIR_INFO("Undefining storage pool '%s'", pool->def->name);
virStoragePoolObjRemove(&driver->pools, pool);
pool = NULL;
ret = 0;
goto cleanup;
}
- VIR_INFO(_("Starting up storage pool '%s'"), pool->def->name);
+ VIR_INFO("Starting up storage pool '%s'", pool->def->name);
pool->active = 1;
ret = 0;
virStoragePoolObjClearVols(pool);
pool->active = 0;
- VIR_INFO(_("Shutting down storage pool '%s'"), pool->def->name);
+ VIR_INFO("Shutting down storage pool '%s'", pool->def->name);
if (pool->configFile == NULL) {
virStoragePoolObjRemove(&driver->pools, pool);
}
if (backend->deletePool(obj->conn, pool, flags) < 0)
goto cleanup;
- VIR_INFO(_("Deleting storage pool '%s'"), pool->def->name);
+ VIR_INFO("Deleting storage pool '%s'", pool->def->name);
ret = 0;
cleanup:
}
- VIR_INFO(_("Creating volume '%s' in storage pool '%s'"),
+ VIR_INFO("Creating volume '%s' in storage pool '%s'",
volobj->name, pool->def->name);
ret = volobj;
volobj = NULL;
goto cleanup;
}
- VIR_INFO(_("Creating volume '%s' in storage pool '%s'"),
+ VIR_INFO("Creating volume '%s' in storage pool '%s'",
volobj->name, pool->def->name);
ret = volobj;
volobj = NULL;
for (i = 0 ; i < pool->volumes.count ; i++) {
if (pool->volumes.objs[i] == vol) {
- VIR_INFO(_("Deleting volume '%s' from storage pool '%s'"),
+ VIR_INFO("Deleting volume '%s' from storage pool '%s'",
vol->name, pool->def->name);
virStorageVolDefFree(vol);
vol = NULL;
/*
- * Copyright (C) 2007, 2009 Red Hat, Inc.
+ * Copyright (C) 2007, 2009, 2011 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
struct ifreq dummy;
if (ioctl(tapfd, TUNGETFEATURES, &features) != 0) {
- VIR_INFO(_("Not enabling IFF_VNET_HDR; "
- "TUNGETFEATURES ioctl() not implemented"));
+ VIR_INFO("Not enabling IFF_VNET_HDR; "
+ "TUNGETFEATURES ioctl() not implemented");
return 0;
}
if (!(features & IFF_VNET_HDR)) {
- VIR_INFO(_("Not enabling IFF_VNET_HDR; "
- "TUNGETFEATURES ioctl() reports no IFF_VNET_HDR"));
+ VIR_INFO("Not enabling IFF_VNET_HDR; "
+ "TUNGETFEATURES ioctl() reports no IFF_VNET_HDR");
return 0;
}
* If TUNGETIFF is not implemented then errno == EBADFD.
*/
if (ioctl(tapfd, TUNGETIFF, &dummy) != -1 || errno != EBADFD) {
- VIR_INFO(_("Not enabling IFF_VNET_HDR; "
- "TUNGETIFF ioctl() not implemented"));
+ VIR_INFO("Not enabling IFF_VNET_HDR; "
+ "TUNGETIFF ioctl() not implemented");
return 0;
}
- VIR_INFO(_("Enabling IFF_VNET_HDR"));
+ VIR_INFO("Enabling IFF_VNET_HDR");
return 1;
# else
(void) tapfd;
- VIR_INFO(_("Not enabling IFF_VNET_HDR; disabled at build time"));
+ VIR_INFO("Not enabling IFF_VNET_HDR; disabled at build time");
return 0;
# endif
}