Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    e6951139
    lib: Allow using 0x when a decimal value is requested · e6951139
    Simon Glass authored
    
    U-Boot mostly uses hex for value input, largely because addresses are much
    easier to understand in hex.
    
    But in some cases a decimal value is requested, such as where the value is
    small or hex does not make sense in the context. In these cases it is
    sometimes useful to be able to provide a hex value in any case, if only to
    resolve any ambiguity.
    
    Add this functionality, for increased flexibility.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    e6951139
    History
    lib: Allow using 0x when a decimal value is requested
    Simon Glass authored
    
    U-Boot mostly uses hex for value input, largely because addresses are much
    easier to understand in hex.
    
    But in some cases a decimal value is requested, such as where the value is
    small or hex does not make sense in the context. In these cases it is
    sometimes useful to be able to provide a hex value in any case, if only to
    resolve any ambiguity.
    
    Add this functionality, for increased flexibility.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>