Cleanup vmt(4) by changing an ugly if statement for received commands
authorreyk <reyk@openbsd.org>
Sat, 20 Dec 2014 11:27:18 +0000 (11:27 +0000)
committerreyk <reyk@openbsd.org>
Sat, 20 Dec 2014 11:27:18 +0000 (11:27 +0000)
commit5168264ce265368cb29e38b1b8a989224346dba6
tree589ffdb77d3da5b206095ebcaab4db13c961c5cb
parentd117d872950855dcae3d26b46edd98ce833f2f1b
Cleanup vmt(4) by changing an ugly if statement for received commands
into a table of callbacks.  Additionally, turn printfs into DPRINTFs
to make the driver less chatty by default.

OK deraadt@
sys/dev/vmt.c