Commit a0005bab authored by Pankaj Kumar's avatar Pankaj Kumar

Fix bug in test program

- Passed required number of arguments to function xc_cap_create
- Fixed capability pointer dereferencing issue
Signed-off-by: Pankaj Kumar's avatarPankaj Kumar <pankajk@cs.utah.edu>
parent 088800a0
......@@ -18,7 +18,7 @@ int test_xen_cap_create(void)
uint32_t domain_id = 2;
int ret;
xc_interface *xch;
struct capability cap;
struct capability *cap = NULL;
xch = xc_interface_open(0,0,0);
......@@ -28,7 +28,7 @@ int test_xen_cap_create(void)
return 0;
}
ret = xc_cap_create(xch, domain_id, cap);
ret = xc_cap_create(xch, cap);
printf("\nApplication test_cap_create:Domain %d, captype:0x%x\n", domain_id, cap->magic);
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment