int drive;
int i=1;
/* output format */
- const char *slot_api_empty_format="%i||||||\n";
- const char *slot_api_full_format="%i|%i|%s|%s|%s|%s|%i|\n";
- const char *slot_hformat=" %4i%c| %16s | %9s | %20s | %18s | %i |\n";
+ const char *slot_api_empty_format="%i|||||\n";
+ const char *slot_api_full_format="%i|%i|%s|%s|%s|%s|\n";
+ const char *slot_hformat=" %4i%c| %16s | %9s | %20s | %18s |\n";
if (!open_client_db(ua)) {
return;
goto bail_out;
}
if (!ua->api) {
- ua->info_msg(_(" Slot | Volume Name | Status | Media Type | Pool | Loaded |\n"));
- ua->info_msg(_("------+------------------+-----------+----------------------+--------------------+---------|\n"));
+ ua->info_msg(_(" Slot | Volume Name | Status | Media Type | Pool |\n"));
+ ua->info_msg(_("------+------------------+-----------+----------------------+--------------------|\n"));
}
/* Walk through the list getting the media records */
if (!ua->api) {
ua->info_msg(slot_hformat,
vl->Slot, '*',
- "?", "?", "?", "?", 0);
+ "?", "?", "?", "?");
} else {
ua->info_msg(slot_api_empty_format, vl->Slot);
}
if (slot_list[i]) {
if (!ua->api) {
ua->info_msg(slot_hformat,
- i, ' ', "", "", "", "", 0);
+ i, ' ', "", "", "", "");
} else {
ua->info_msg(slot_api_empty_format, i);
}
/* Print information */
ua->info_msg(slot_hformat,
vl->Slot, ((vl->Slot==mr.Slot)?' ':'*'),
- mr.VolumeName, mr.VolStatus, mr.MediaType, pr.Name, 0);
+ mr.VolumeName, mr.VolStatus, mr.MediaType, pr.Name);
} else {
ua->info_msg(slot_api_full_format,
vl->Slot, mr.Slot, mr.VolumeName, mr.VolStatus,
- mr.MediaType, pr.Name, 0);
+ mr.MediaType, pr.Name);
}
db_unlock(ua->db);
} else { /* TODO: get information from catalog */
ua->info_msg(slot_hformat,
vl->Slot, '*',
- mr.VolumeName, "?", "?", "?", 0);
+ mr.VolumeName, "?", "?", "?");
}
db_unlock(ua->db);
}
if (slot_list[i]) {
if (!ua->api) {
ua->info_msg(slot_hformat,
- i, ' ', "", "", "", "", 0);
+ i, ' ', "", "", "", "");
} else {
ua->info_msg(slot_api_empty_format, i);
}