Skip to content
  • Thomas Haller's avatar
    core/utils: extend nm_utils_flags2str() for multi-value flags and name for zero · a2dcdbe0
    Thomas Haller authored
    Allow passing a pretty name for the zero flag 0, like "none".
    
    Also, don't require flags to be power-of-two. Instead, allow names for
    multiple flags. For example an "all" name. By specifying multi-value
    flags first, their nick will be supersede the more specific flags.
    Probably it doesn't make sense in usual cases, but nm_utils_flags2str()
    should prevent such use.
    a2dcdbe0