lib: remove obsolete fprint_(long_)canframe functions

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
Oliver Hartkopp
2024-02-27 11:17:49 +01:00
parent 3b36edf128
commit f491175d72
2 changed files with 0 additions and 43 deletions
-28
View File
@@ -258,18 +258,6 @@ int parse_canframe(char *cs, struct canfd_frame *cf)
return ret;
}
void fprint_canframe(FILE *stream, struct canfd_frame *cf, char *eol, int sep)
{
/* documentation see lib.h */
char buf[CL_CFSZ]; /* max length */
sprint_canframe(buf, cf, sep);
fprintf(stream, "%s", buf);
if (eol)
fprintf(stream, "%s", eol);
}
int sprint_canframe(char *buf, struct canfd_frame *cf, int sep)
{
/* documentation see lib.h */
@@ -353,22 +341,6 @@ int sprint_canframe(char *buf, struct canfd_frame *cf, int sep)
return offset;
}
void fprint_long_canframe(FILE *stream, struct canfd_frame *cf, char *eol, int view)
{
/* documentation see lib.h */
char buf[CL_LONGCFSZ];
sprint_long_canframe(buf, cf, view);
fprintf(stream, "%s", buf);
if ((view & CANLIB_VIEW_ERROR) && (cf->can_id & CAN_ERR_FLAG)) {
snprintf_can_error_frame(buf, sizeof(buf), cf, "\n\t");
fprintf(stream, "\n\t%s", buf);
}
if (eol)
fprintf(stream, "%s", eol);
}
int sprint_long_canframe(char *buf, struct canfd_frame *cf, int view)
{
/* documentation see lib.h */