int i;
for (i = 0; i < num_dicts; i++) {
- DEBUG(0, ("dict (\n"
- "\tkey: %s\n"
- "\tval: %s\n"
- ")\n",
- dicts[i].key, dicts[i].val));
+ DEBUG(10, ("dict (key: %s, val: %s)\n",
+ dicts[i].key, dicts[i].val));
}
}
int i;
for (i = 0; i < num_confs; i++) {
- DEBUG(0, ("name: %s\n"
- "mnt: %s\n",
- confs[i].name, confs[i].mnt));
+ DEBUG(10, ("name: %s, mnt: %s\n",
+ confs[i].name, confs[i].mnt));
snapper_dict_array_print(confs[i].num_attrs, confs[i].attrs);
}
}
return status;
}
+ snapper_conf_array_print(num_confs, confs);
+
*num_confs_out = num_confs;
*confs_out = confs;
int i;
for (i = 0; i < num_snaps; i++) {
- DEBUG(0, ("id: %u\n"
- "type: %u\n"
- "pre_id: %u\n"
- "time: %lu\n"
- "creator_uid: %u\n"
- "desc: %s\n"
- "cleanup: %s\n",
- snaps[i].id,
- snaps[i].type,
- snaps[i].pre_id,
- snaps[i].time,
- snaps[i].creator_uid,
- snaps[i].desc,
- snaps[i].cleanup));
+ DEBUG(10, ("id: %u, "
+ "type: %u, "
+ "pre_id: %u, "
+ "time: %lu, "
+ "creator_uid: %u, "
+ "desc: %s, "
+ "cleanup: %s\n",
+ snaps[i].id,
+ snaps[i].type,
+ snaps[i].pre_id,
+ snaps[i].time,
+ snaps[i].creator_uid,
+ snaps[i].desc,
+ snaps[i].cleanup));
snapper_dict_array_print(snaps[i].num_user_data,
snaps[i].user_data);
}
return NT_STATUS_INVALID_PARAMETER;
}
+ snapper_snap_array_print(num_snaps, snaps);
+
*num_snaps_out = num_snaps;
*snaps_out = snaps;
uint32_t i;
bool ok;
- DEBUG(0, ("CreateSingleSnapshot: %s, %s, %s, num user %u\n",
+ DEBUG(10, ("CreateSingleSnapshot: %s, %s, %s, num user %u\n",
snapper_conf, desc, empty, num_user_data));
msg = dbus_message_new_method_call("org.opensuse.Snapper",
}
/* we should always get at least one snapshot (current) */
if (num_snaps == 0) {
- DEBUG(0, ("zero snapshots in snap list response\n"));
+ DEBUG(6, ("zero snapshots in snap list response\n"));
goto err_rsp_free;
}
- snapper_snap_array_print(num_snaps, snaps);
-
/* subtract 1, (current) snapshot is not returned */
sc_data->num_volumes = num_snaps - 1;
sc_data->labels = NULL;
goto done;
}
- sc_data->labels = talloc_array(sc_data, SHADOW_COPY_LABEL, sc_data->num_volumes);
+ sc_data->labels = talloc_array(sc_data, SHADOW_COPY_LABEL,
+ sc_data->num_volumes);
if (sc_data->labels == NULL) {
status = NT_STATUS_NO_MEMORY;
goto err_rsp_free;
}
if (num_snaps == 0) {
- DEBUG(2, ("no snapshots found with time: %lu\n", snaptime));
+ DEBUG(4, ("no snapshots found with time: %lu\n", snaptime));
status = NT_STATUS_INVALID_PARAMETER;
goto err_snap_array_free;
} else if (num_snaps > 0) {
- DEBUG(2, ("got %u snapshots for single time %lu, using top\n",
+ DEBUG(4, ("got %u snapshots for single time %lu, using top\n",
num_snaps, snaptime));
}