]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak debug level in vtape_dev.c
authorEric Bollengier <eric@baculasystems.com>
Tue, 27 Nov 2018 10:22:30 +0000 (11:22 +0100)
committerKern Sibbald <kern@sibbald.com>
Mon, 8 Apr 2019 16:17:43 +0000 (18:17 +0200)
bacula/src/stored/vtape_dev.c

index 9cf182bd3d8f34a9181c673347e18627927906c9..266ca7e9cd586383b1833eb96c6d926eae9f3b78 100644 (file)
@@ -385,7 +385,7 @@ ssize_t vtape::d_write(int, const void *buffer, size_t count)
    ASSERT(buffer);
 
    ssize_t nb;
-   Dmsg3(0, "write len=%i %i:%i\n",
+   Dmsg3(dbglevel, "write len=%i %i:%i\n",
          count, current_file,current_block);
 
    if (atEOT) {
@@ -402,12 +402,12 @@ ssize_t vtape::d_write(int, const void *buffer, size_t count)
       }
       int64_t pos = DEVICE::get_full_addr(current_file, current_block);
       if ( pos < size ) {
-         Dmsg2(0, "WORM detected. Cannot write at %lld with current size at %lld\n", pos, size -20);
+         Dmsg2(dbglevel, "WORM detected. Cannot write at %lld with current size at %lld\n", pos, size -20);
          errno = EIO;
          return -1;
       }
    } else {
-      Dmsg0(0, "Not worm!\n");
+      Dmsg0(dbglevel, "Not worm!\n");
    }
 
    if (!atEOD) {                /* if not at the end of the data */