Skip to content

Commit 1ac59de

Browse files
AlaiaLcodebot
authored andcommitted
fmt: remove the hexadecimal format for the PUSCH and PUCCH context for the RNTI, as the RNTI formatter adds it
1 parent ed8b77f commit 1ac59de

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/srsran/ran/pucch/pucch_context_formatter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ struct formatter<srsran::pucch_context> {
2727
template <typename FormatContext>
2828
auto format(const srsran::pucch_context& context, FormatContext& ctx) -> decltype(std::declval<FormatContext>().out())
2929
{
30-
helper.format_always(ctx, "rnti=0x{:04x}", context.rnti);
30+
helper.format_always(ctx, "rnti={}", context.rnti);
3131
return ctx.out();
3232
}
3333

3434
private:
3535
srsran::delimited_formatter helper;
3636
};
3737

38-
} // namespace fmt
38+
} // namespace fmt

include/srsran/ran/pusch/pusch_context_formatter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct formatter<srsran::pusch_context> {
2727
template <typename FormatContext>
2828
auto format(const srsran::pusch_context& context, FormatContext& ctx) -> decltype(std::declval<FormatContext>().out())
2929
{
30-
helper.format_always(ctx, "rnti=0x{:04x}", context.rnti);
30+
helper.format_always(ctx, "rnti={}", context.rnti);
3131
helper.format_always(ctx, "h_id={}", context.h_id);
3232
return ctx.out();
3333
}
@@ -36,4 +36,4 @@ struct formatter<srsran::pusch_context> {
3636
srsran::delimited_formatter helper;
3737
};
3838

39-
} // namespace fmt
39+
} // namespace fmt

0 commit comments

Comments
 (0)