From 44772060af13579f21ff1e6900e37ee1d043ca66 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Tue, 4 Aug 2009 10:39:13 +0000 Subject: [PATCH] removed debug output --- tools/coffee-manager/se/sics/coffee/CoffeeFS.java | 4 ++-- tools/coffee-manager/se/sics/coffee/CoffeeFile.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/coffee-manager/se/sics/coffee/CoffeeFS.java b/tools/coffee-manager/se/sics/coffee/CoffeeFS.java index 05ec06dac..e423fb8d6 100644 --- a/tools/coffee-manager/se/sics/coffee/CoffeeFS.java +++ b/tools/coffee-manager/se/sics/coffee/CoffeeFS.java @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: CoffeeFS.java,v 1.1 2009/08/04 10:36:53 nvt-se Exp $ + * $Id: CoffeeFS.java,v 1.2 2009/08/04 10:39:13 nvt-se Exp $ * * @author Nicolas Tsiftes * @@ -146,9 +146,9 @@ public class CoffeeFS { try { File file = new File(filename); FileInputStream input = new FileInputStream(file); -System.out.println("file length: " + file.length() + ", page count: " + pageCount(file.length())); int allocatePages = pageCount(file.length()); int start = findFreeExtent(allocatePages); + if(start == INVALID_PAGE) { return null; } diff --git a/tools/coffee-manager/se/sics/coffee/CoffeeFile.java b/tools/coffee-manager/se/sics/coffee/CoffeeFile.java index d94a355ee..33a8e25f0 100644 --- a/tools/coffee-manager/se/sics/coffee/CoffeeFile.java +++ b/tools/coffee-manager/se/sics/coffee/CoffeeFile.java @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: CoffeeFile.java,v 1.1 2009/08/04 10:36:53 nvt-se Exp $ + * $Id: CoffeeFile.java,v 1.2 2009/08/04 10:39:13 nvt-se Exp $ * * @author Nicolas Tsiftes * @@ -86,7 +86,6 @@ public class CoffeeFile { startOffset + length); length++; } -System.out.println("inserted bytes: " + length); } public void saveContents(String filename) throws IOException {