Add NBD_CMD_TRIM to getcommandname
authorWouter Verhelst <w@uter.be>
Wed, 21 Nov 2012 21:26:01 +0000 (22:26 +0100)
committerWouter Verhelst <w@uter.be>
Wed, 21 Nov 2012 21:27:36 +0000 (22:27 +0100)
Discovered-By: Nicolas Trangez
nbd-server.c

index 49822a70786224c2dd3652d0d7a1db741708445d..9d16d18043a8be8f5c8c92562e466f5ef0b24ed2 100644 (file)
@@ -303,10 +303,11 @@ static inline const char * getcommandname(uint64_t command) {
                return "NBD_CMD_DISC";
        case NBD_CMD_FLUSH:
                return "NBD_CMD_FLUSH";
+       case NBD_CMD_TRIM:
+               return "NBD_CMD_TRIM";
        default:
-               break;
+               return "UNKNOWN";
        }
-       return "UNKNOWN";
 }
 
 /**