Hi,<div>I just noticed (read: hit an issue) that ranges specified in layout files are always assumed to be hex. From layout.c:</div><div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">          </span>rom_entries[romimages].start = strtol(tstr1, (char **)NULL, 16);</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre">             </span>rom_entries[romimages].end = strtol(tstr2, (char **)NULL, 16);</font></div><div><br>

</div>Is there a specific reason base 16 is used? Should we just leave it at "0" and let strtol decide, depending on the prefix (0x for hex, dec otherwise)?</div><div><br></div><div>The reason I bring this up is because I am working with testing scripts that generate ranges on the fly. It's an extra step to convert values to hex (printf %x $value?) and I want to reduce dependency on external programs / maximize portability.</div>

<div><br></div><div>If this sounds reasonable, the patch attached simply changes the radix used by strtol to "0" do dec is chosen if there is no prefix and hex is chosen if the number is prefixed with 0x.</div>
<div>
Signed-off-by: David Hendricks <<a href="mailto:dhedndrix@google.com">dhedndrix@google.com</a>></div><div><br>-- <br>David Hendricks (dhendrix)<br>Systems Software Engineer, Google Inc.<br>
</div>