>From 598803242f0b9d7ad9252daaeda995a4ffb24149 Mon Sep 17 00:00:00 2001
From: Jaren Johnston <jaren.johnston>
Date: Fri, 15 Jun 2012 10:09:51 -0700
Subject: [PATCH 1/2] added previous page count to log. minor formatting.

Change-Id: Ie234fef01ce795f207f6b3f3345255717a545ce2
---
 zc.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/zc.c b/zc.c
index 96a011d..c00f7c5 100644
--- a/zc.c
+++ b/zc.c
@@ -82,16 +82,15 @@ int __get_userbuf(uint8_t __user *addr, uint32_t len, int write,
 
 int adjust_sg_array(struct csession * ses, int pagecount)
 {
-struct scatterlist *sg;
-struct page **pages;
-int array_size;
+	struct scatterlist *sg;
+	struct page **pages;
+	int array_size;
 
 	for (array_size = ses->array_size; array_size < pagecount;
 	     array_size *= 2)
 		;
-
-	dprintk(2, KERN_DEBUG, "%s: reallocating to %d elements\n",
-			__func__, array_size);
+	dprintk(0, KERN_DEBUG, "reallocating from %d to %d pages\n",
+			ses->array_size, array_size);
 	pages = krealloc(ses->pages, array_size * sizeof(struct page *),
 			 GFP_KERNEL);
 	if (unlikely(!pages))
-- 
1.7.1

