From 3af0be9f8c7cf78b7d49ce5efe5062659fa99918 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Mon, 18 Dec 2000 16:10:02 +0000 Subject: HJ patch.63 - add tag to upgrade complete screen --- isys/cpio.c | 6 ++++++ isys/otherinsmod.c | 12 ++++++++++++ 2 files changed, 18 insertions(+) (limited to 'isys') diff --git a/isys/cpio.c b/isys/cpio.c index 97d411764..6c9985a07 100644 --- a/isys/cpio.c +++ b/isys/cpio.c @@ -12,6 +12,10 @@ int installCpioFile(gzFile fd, char * cpioName, char * outName, int inWin) { int rc; const char * failedFile; + FILE *myfile; + + myfile = fopen("/dev/tty3", "rw"); + if (outName) { map.archivePath = cpioName; map.fsPath = outName; @@ -21,6 +25,8 @@ int installCpioFile(gzFile fd, char * cpioName, char * outName, int inWin) { rc = myCpioInstallArchive(fd, outName ? &map : NULL, 1, NULL, NULL, &failedFile); + fprintf(myfile, "Failed file = %s\n", failedFile); + if (rc || access(outName, R_OK)) { return -1; } diff --git a/isys/otherinsmod.c b/isys/otherinsmod.c index c09798eee..98642d018 100644 --- a/isys/otherinsmod.c +++ b/isys/otherinsmod.c @@ -24,6 +24,11 @@ int ourInsmodCommand(int argc, char ** argv) { char fullName[100]; struct utsname u; + FILE *myfile; + + myfile = fopen("/dev/tty3", "w"); + fprintf(myfile, "Got into ourInsmodCommand()\n"); + uname(&u); #ifdef __sparc__ @@ -33,6 +38,7 @@ int ourInsmodCommand(int argc, char ** argv) { if (argc < 2) { fprintf(stderr, "usage: insmod [-p ] .o [params]\n"); + fprintf(myfile, "Error 1\n"); return 1; } @@ -58,6 +64,7 @@ int ourInsmodCommand(int argc, char ** argv) { fd = gzopen(ballPath, "r"); if (!fd) { free(ballPath); + fprintf(myfile, "Error 2\n"); return 1; } @@ -73,6 +80,7 @@ int ourInsmodCommand(int argc, char ** argv) { continue; } free(ballPath); + fprintf(myfile, "Error 3\n"); return 1; } @@ -87,10 +95,14 @@ int ourInsmodCommand(int argc, char ** argv) { argv[0] = "insmod"; argv[1] = file; + fprintf(myfile, "Calling combined_insmod_main()\n"); + rc = combined_insmod_main(argc, argv); if (rmObj) unlink(file); + fprintf(myfile, "combined_insmod_main() returned %d\n", rc); + return rc; } -- cgit