goto bail_out;
}
if (!ua->api) {
- ua->info_msg(_(" Slot | Volume Name | Status | Media Type | Pool |\n"));
- ua->info_msg(_("------+------------------+-----------+----------------------+--------------------|\n"));
+ ua->send_msg(_(" Slot | Volume Name | Status | Media Type | Pool |\n"));
+ ua->send_msg(_("------+------------------+-----------+----------------------+--------------------|\n"));
}
/* Walk through the list getting the media records */
if (!vl->VolName) {
Dmsg1(100, "No VolName for Slot=%d.\n", vl->Slot);
if (!ua->api) {
- ua->info_msg(slot_hformat,
+ ua->send_msg(slot_hformat,
vl->Slot, '*',
"?", "?", "?", "?");
} else {
- ua->info_msg(slot_api_empty_format, vl->Slot);
+ ua->send_msg(slot_api_empty_format, vl->Slot);
}
continue;
}
for (; i < vl->Slot; i++) {
if (slot_list[i]) {
if (!ua->api) {
- ua->info_msg(slot_hformat,
+ ua->send_msg(slot_hformat,
i, ' ', "", "", "", "");
} else {
- ua->info_msg(slot_api_empty_format, i);
+ ua->send_msg(slot_api_empty_format, i);
}
slot_list[i]=0;
}
if (!ua->api) {
/* Print information */
- ua->info_msg(slot_hformat,
+ ua->send_msg(slot_hformat,
vl->Slot, ((vl->Slot==mr.Slot)?' ':'*'),
mr.VolumeName, mr.VolStatus, mr.MediaType, pr.Name);
} else {
- ua->info_msg(slot_api_full_format,
+ ua->send_msg(slot_api_full_format,
vl->Slot, mr.Slot, mr.VolumeName, mr.VolStatus,
mr.MediaType, pr.Name);
}
db_unlock(ua->db);
continue;
} else { /* TODO: get information from catalog */
- ua->info_msg(slot_hformat,
+ ua->send_msg(slot_hformat,
vl->Slot, '*',
mr.VolumeName, "?", "?", "?");
}
for (; i <= max_slots; i++) {
if (slot_list[i]) {
if (!ua->api) {
- ua->info_msg(slot_hformat,
+ ua->send_msg(slot_hformat,
i, ' ', "", "", "", "");
} else {
- ua->info_msg(slot_api_empty_format, i);
+ ua->send_msg(slot_api_empty_format, i);
}
slot_list[i]=0;
}