xenperf: Fix typo in mlock() invocation.
authorKeir Fraser <keir@xensource.com>
Wed, 31 Oct 2007 16:21:18 +0000 (16:21 +0000)
committerKeir Fraser <keir@xensource.com>
Wed, 31 Oct 2007 16:21:18 +0000 (16:21 +0000)
Signed-off-by: Stephen Wilson <stephen.wilson@amd.com>
tools/misc/xenperf.c

index 06a495181d2c0233c1f3f3a5d3bce8b0e8bda2ef..afa635a034000437591842e76f8c60c2e670e32c 100644 (file)
@@ -161,7 +161,7 @@ int main(int argc, char *argv[])
     if ( pcd == NULL
          || lock_pages(pcd, sizeof(*pcd) * num_desc) != 0
          || pcv == NULL
-         || lock_pages(pcd, sizeof(*pcv) * num_val) != 0)
+         || lock_pages(pcv, sizeof(*pcv) * num_val) != 0)
     {
         fprintf(stderr, "Could not alloc or lock buffers: %d (%s)\n",
                 errno, strerror(errno));