lindebugfs: use __func__ not __FUNCTION__

Change to the C99 version and not the old gcc name.
No functional changes.

Sponsored by:	The FreeBSD Foundation
Reviewed by:	dumbbell, emaste
Differential Revision: https://reviews.freebsd.org/D48736

(cherry picked from commit 94e6c8d7d19de68b29233e59c85b16c645c1a872)
This commit is contained in:
Bjoern A. Zeeb 2025-01-25 12:07:12 +00:00
parent 8552e8de6d
commit 51b3a9dacf

View file

@ -131,7 +131,7 @@ debugfs_fill(PFS_FILL_ARGS)
rc = d->dm_fops->open(&vn, &lf);
if (rc < 0) {
#ifdef INVARIANTS
printf("%s:%d open failed with %d\n", __FUNCTION__, __LINE__, rc);
printf("%s:%d open failed with %d\n", __func__, __LINE__, rc);
#endif
return (-rc);
}
@ -166,7 +166,7 @@ debugfs_fill(PFS_FILL_ARGS)
if (rc < 0) {
#ifdef INVARIANTS
printf("%s:%d read/write failed with %d\n", __FUNCTION__, __LINE__, rc);
printf("%s:%d read/write failed with %d\n", __func__, __LINE__, rc);
#endif
return (-rc);
}