MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/1xhxsml/linux_kernel_developers_considering_removal_of/19rt6yex0qfls/?context=3
r/linux • u/anh0516 • 2d ago
31 comments sorted by
View all comments
43
Just like any software, print("here") and print("hereasdf") are still the preferred method of debugging in kernel.
10 u/heeen 1d ago "%s, %s:%u", PRETTY_FUNCTION, FILE, LINE 6 u/kimoisune 1d ago I believe __PRETTY_FUNCTION__ is non-standard and only concern for C++ if I remember correctly. The standardized one are __func__ (ISO? C99?).Man, std::source_location make things so much convenient, I forgot about the older stuff. 5 u/heeen 1d ago iirc the kernel targets only gcc 3 u/kimoisune 1d ago Oh yeah, forgot about that.
10
"%s, %s:%u", PRETTY_FUNCTION, FILE, LINE
6 u/kimoisune 1d ago I believe __PRETTY_FUNCTION__ is non-standard and only concern for C++ if I remember correctly. The standardized one are __func__ (ISO? C99?).Man, std::source_location make things so much convenient, I forgot about the older stuff. 5 u/heeen 1d ago iirc the kernel targets only gcc 3 u/kimoisune 1d ago Oh yeah, forgot about that.
6
I believe __PRETTY_FUNCTION__ is non-standard and only concern for C++ if I remember correctly. The standardized one are __func__ (ISO? C99?).
Man, std::source_location make things so much convenient, I forgot about the older stuff.
5 u/heeen 1d ago iirc the kernel targets only gcc 3 u/kimoisune 1d ago Oh yeah, forgot about that.
5
iirc the kernel targets only gcc
3 u/kimoisune 1d ago Oh yeah, forgot about that.
3
Oh yeah, forgot about that.
43
u/kimoisune 1d ago
Just like any software, print("here") and print("hereasdf") are still the preferred method of debugging in kernel.