Skip to content
  • Thomas Haller's avatar
    logging: add check for logging level in nm_logging_enabled() · f8cc7315
    Thomas Haller authored
    With this check, the function is safe to use even with invalid
    logging levels. But it can still be inlined as for most cases
    @level is a (enum) constant and the check can be evaluated at
    compile time.
    
    Oddly enough, on a default build with
      ./autogen.sh && make && strip ./src/NetworkManager
    this patch decreases the size of the binary by 8k.
    f8cc7315