vhost: logging thinko fix
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Feb 2010 17:11:33 +0000 (19:11 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 28 Feb 2010 17:42:35 +0000 (19:42 +0200)
vhost was dong some complex math to get
offset to log at, and got it wrong by a couple of bytes,
while in fact it's simple: get address where we write,
subtract start of buffer, add log base.

Do it this way.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c

Simple merge