From c3a89b90d3f38f660bfbebbee2174a24816954b7 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Mon, 18 Dec 2006 04:29:39 +0000 Subject: [PATCH] fix the 'cache_ref' and 'cache' kdl commands git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19546 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index 8729d7c193..132952238d 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -1818,7 +1818,7 @@ dump_cache_ref(int argc, char **argv) return 0; } - address = atoul(argv[1]); + address = strtoul(argv[1], NULL, 0); cache_ref = (vm_cache_ref *)address; kprintf("cache_ref at %p:\n", cache_ref); @@ -1880,7 +1880,7 @@ dump_cache(int argc, char **argv) return 0; } - address = atoul(argv[1]); + address = strtoul(argv[1], NULL, 0); cache = (vm_cache *)address; kprintf("cache at %p:\n", cache);