From e5be6c3b45ffed88ea96d8bc3d2463018290a00b Mon Sep 17 00:00:00 2001 From: Martin Zeithaml Date: Thu, 26 Sep 2024 12:39:55 +0200 Subject: [PATCH 1/2] Remove debug msg Signed-off-by: Martin Zeithaml --- porting/polyfill.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/porting/polyfill.c b/porting/polyfill.c index 4f29e90..a088495 100644 --- a/porting/polyfill.c +++ b/porting/polyfill.c @@ -152,9 +152,7 @@ int tagFile(const char *pathname, unsigned short ccsid){ int res = __chattr((char*)pathname, &attr, sizeof(attr)); #endif - if (res){ - printf("chattr failed with errno=%d\n",errno); - } + return res; } From 813e2e7dc23e93f168ccdc3c06e30f28111cb2fc Mon Sep 17 00:00:00 2001 From: Martin Zeithaml Date: Wed, 2 Oct 2024 13:32:55 +0200 Subject: [PATCH 2/2] convertOpenStream without printf Signed-off-by: Martin Zeithaml --- porting/polyfill.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/porting/polyfill.c b/porting/polyfill.c index a088495..3cf94d7 100644 --- a/porting/polyfill.c +++ b/porting/polyfill.c @@ -115,9 +115,6 @@ int convertOpenStream(int fd, unsigned short fileCCSID){ conversionArg.pccsid = 0; conversionArg.fccsid = fileCCSID; /* 1047; */ int res = fcntl(fd, F_CONTROL_CVT, &conversionArg); - if (res != 0){ - printf("* internal error* convertOpenStream(), and ascii/ebcdic function, called fcntl failed errno=%d\n",errno); - } return res; }