8000 DuckLogger prints symbols when passed standard string · Issue #490 · ClusterDuck-Protocol/ClusterDuck-Protocol · GitHub
[go: up one dir, main page]

Skip to content

DuckLogger prints symbols when passed standard string #490

@faradaym

Description

@faradaym

using logdbg_ln and the other DuckLogger functions, passing a std::string result in non-readable symbols being printed. For example:

  buffer.insert(buffer.end(), duid.begin(), duid.end());

    std::string strDuid(duid.begin(), duid.end());
    logdbg_ln("SDuid: %s", strDuid);

prints symbols, but when passing a c_str, the expected device ID is printed.

Duck logger should either have an overload for std::string, or throw a type error when passed non-c strings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0