Skip to contentSkip to conversation

dataplane: Comment fix

PATCH Applied Markus Armbruster 2 participants 2 messages Jan 30, 2014 – Jan 31, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dataplane: Comment fix

---
 hw/block/dataplane/virtio-blk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/block/dataplane/virtio-blk.c +1 -1
index 456d437..2237edb 100644
@@ -145,7 +145,7 @@ static void do_get_id_cmd(VirtIOBlockDataPlane *s,
 {
     char id[VIRTIO_BLK_ID_BYTES];
 
-    /* Serial number not NUL-terminated when shorter than buffer */
+    /* Serial number not NUL-terminated when longer than buffer */
     strncpy(id, s->blk->serial ? s->blk->serial : "", sizeof(id));
     iov_from_buf(iov, iov_cnt, 0, id, sizeof(id));
     complete_request_early(s, elem, inhdr, VIRTIO_BLK_S_OK);
Signature · 1 line
1.8.1.4