* Use parse_expression() for argument parsing.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28515 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-11-05 14:07:33 +00:00
parent a26045b7a6
commit 7e621f16d0
1 changed files with 2 additions and 2 deletions

View File

@ -3101,7 +3101,7 @@ dump_vnode(int argc, char **argv)
struct hash_iterator iterator;
dev_t device = parse_expression(argv[1]);
ino_t id = atoll(argv[2]);
ino_t id = parse_expression(argv[2]);
hash_open(sVnodeTable, &iterator);
while ((vnode = (struct vnode *)hash_next(sVnodeTable, &iterator)) != NULL) {
@ -3163,7 +3163,7 @@ dump_vnode_caches(int argc, char **argv)
// restrict dumped nodes to a certain device if requested
dev_t device = -1;
if (argc > 1)
device = atoi(argv[1]);
device = parse_expression(argv[1]);
kprintf("address dev inode cache size pages\n");