- if(slot > -1) {
- fprintf(stderr, "taper: slot: %d wrote label `%s' date `%s'\n", slot,
- label, taper_timestamp);
- }
- else {
- fprintf(stderr, "taper: wrote label `%s' date `%s'\n", label,
- taper_timestamp);
+ /* Output a description of what we just did. A result of '3' from taper_scan
+ * means that a new tape was found and will be labeled. */
+ if (slot > -1) {
+ fprintf(stderr, _("taper: slot: %d wrote label `%s' date `%s'\n"), slot, label, taper_timestamp);
+ if (scan_result == 3)
+ log_add(L_INFO, _("Wrote new label `%s' to new (non-amanda) tape in slot %d"), label, slot);
+ } else {
+ fprintf(stderr, _("taper: wrote label `%s' date `%s'\n"), label, taper_timestamp);
+ if (scan_result == 3)
+ log_add(L_INFO, _("Wrote new label `%s' to new (non-amanda) tape"), label);