summaryrefslogtreecommitdiffstats
path: root/ctdb/common/ctdb_util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-02-04 20:07:15 +1100
committerAndrew Tridgell <tridge@samba.org>2008-02-04 20:07:15 +1100
commitf6e53f433bf8e184ffc281f14c4eacda1ffc935c (patch)
tree577c389c61b4a0d7b51fbf0a0294cbd84bc79f48 /ctdb/common/ctdb_util.c
parent9d6ac0cf559535e8ac7082125692afd287b353e5 (diff)
downloadsamba-f6e53f433bf8e184ffc281f14c4eacda1ffc935c.tar.gz
samba-f6e53f433bf8e184ffc281f14c4eacda1ffc935c.tar.xz
samba-f6e53f433bf8e184ffc281f14c4eacda1ffc935c.zip
merge from ronnie
(This used to be ctdb commit e7b57d38cf7255be823a223cf15b7526285b4f1c)
Diffstat (limited to 'ctdb/common/ctdb_util.c')
-rw-r--r--ctdb/common/ctdb_util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c
index 6724bfc2ec..8ae4df7c4d 100644
--- a/ctdb/common/ctdb_util.c
+++ b/ctdb/common/ctdb_util.c
@@ -46,7 +46,7 @@ void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...)
talloc_free(ctdb->err_msg);
va_start(ap, fmt);
ctdb->err_msg = talloc_vasprintf(ctdb, fmt, ap);
- DEBUG(0,("ctdb error: %s\n", ctdb->err_msg));
+ DEBUG(DEBUG_ERR,("ctdb error: %s\n", ctdb->err_msg));
va_end(ap);
}
@@ -113,7 +113,7 @@ static void *_idr_find_type(struct idr_context *idp, int id, const char *type, c
{
void *p = idr_find(idp, id);
if (p && talloc_check_name(p, type) == NULL) {
- DEBUG(0,("%s idr_find_type expected type %s but got %s\n",
+ DEBUG(DEBUG_ERR,("%s idr_find_type expected type %s but got %s\n",
location, type, talloc_get_name(p)));
return NULL;
}
@@ -147,7 +147,7 @@ void *_ctdb_reqid_find(struct ctdb_context *ctdb, uint32_t reqid, const char *ty
p = _idr_find_type(ctdb->idr, (reqid>>16)&0xFFFF, type, location);
if (p == NULL) {
- DEBUG(0, ("Could not find idr:%u\n",reqid));
+ DEBUG(DEBUG_ERR, ("Could not find idr:%u\n",reqid));
}
return p;
@@ -160,7 +160,7 @@ void ctdb_reqid_remove(struct ctdb_context *ctdb, uint32_t reqid)
ret = idr_remove(ctdb->idr, (reqid>>16)&0xFFFF);
if (ret != 0) {
- DEBUG(0, ("Removing idr that does not exist\n"));
+ DEBUG(DEBUG_ERR, ("Removing idr that does not exist\n"));
}
}
@@ -216,7 +216,7 @@ void ctdb_set_scheduler(struct ctdb_context *ctdb)
}
if (sched_getparam(0, (struct sched_param *)ctdb->saved_scheduler_param) == -1) {
- DEBUG(0,("Unable to get old scheduler params\n"));
+ DEBUG(DEBUG_ERR,("Unable to get old scheduler params\n"));
return;
}
@@ -224,7 +224,7 @@ void ctdb_set_scheduler(struct ctdb_context *ctdb)
p.sched_priority = 1;
if (sched_setscheduler(0, SCHED_FIFO, &p) == -1) {
- DEBUG(0,("Unable to set scheduler to SCHED_FIFO (%s)\n",
+ DEBUG(DEBUG_CRIT,("Unable to set scheduler to SCHED_FIFO (%s)\n",
strerror(errno)));
} else {
DEBUG(DEBUG_NOTICE,("Set scheduler to SCHED_FIFO\n"));