mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 11:16:57 +00:00
ram_block: use Number_of_bytes to parse block size
Using this helper rather than parsing as size_t directly allows use to use size suffixes, e.g. K, M, G. Fixes #3540.
This commit is contained in:
parent
ba9b612c4f
commit
f5c5479faa
@ -174,7 +174,8 @@ struct Main
|
||||
size = config.attribute_value("size", Number_of_bytes());
|
||||
}
|
||||
|
||||
block_size = config.attribute_value("block_size", block_size);
|
||||
block_size = config.attribute_value("block_size",
|
||||
Number_of_bytes(block_size));
|
||||
}
|
||||
|
||||
Block::Driver *create() override
|
||||
|
Loading…
Reference in New Issue
Block a user