From mboxrd@z Thu Jan 1 00:00:00 1970 From: Balbir Singh Subject: Re: [-mm PATCH] Memory controller improve user interface (v3) Date: Mon, 03 Sep 2007 20:49:23 +0100 Message-ID: <46DC6543.3000607@linux.vnet.ibm.com> References: <20070902105021.3737.31251.sendpatchset@balbir-laptop> <6599ad830709022153g1720bcedsb61d7cf7a783bd3f@mail.gmail.com> Reply-To: balbir@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6599ad830709022153g1720bcedsb61d7cf7a783bd3f@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Paul Menage Cc: Andrew Morton , Linux Kernel Mailing List , Linux Containers , Linux MM Mailing List , David Rientjes , Dave Hansen List-Id: containers.vger.kernel.org Paul Menage wrote: > On 9/2/07, Balbir Singh wrote: >> - s += sprintf(s, "%lu\n", *val); >> + if (read_strategy) >> + s += read_strategy(*val, s); >> + else >> + s += sprintf(s, "%lu\n", *val); > > This would be better as %llu > Hi, Paul, This does not need fixing, since the other counters like failcnt are still unsigned long >> + tmp = simple_strtoul(buf, &end, 10); > > and this as simple_strtoull() > Will do, thanks! -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL