linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* quik 2.0 fix
@ 1999-09-11  9:01 Benjamin Herrenschmidt
  1999-09-12 16:45 ` Kostas Gewrgiou
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Herrenschmidt @ 1999-09-11  9:01 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: linuxppc-user, erbenson


It took me a while to figure out why my printf's were displaying crazy
results until I found out the glibc2.1 dev_t is a long long ! So this fix
will make quik correctly recognize the partition number:

--- quik.c.old	Sat Sep 11 10:52:54 1999
+++ quik.c	Sat Sep 11 10:52:01 1999
@@ -521,7 +521,7 @@
 	bootdev[7] += UNIT(st1.st_dev);
     strcpy(spart, bootdev);
     if (PART(st1.st_dev) != 0)
-	sprintf(spart+8, "%d", PART(st1.st_dev));
+	sprintf(spart+8, "%d", (int)PART(st1.st_dev));
 
     if (verbose)
 	printf("Second-stage loader is on %s\n", spart);


-- 
           E-Mail: <mailto:bh40@calva.net>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: quik 2.0 fix
  1999-09-11  9:01 quik 2.0 fix Benjamin Herrenschmidt
@ 1999-09-12 16:45 ` Kostas Gewrgiou
  0 siblings, 0 replies; 2+ messages in thread
From: Kostas Gewrgiou @ 1999-09-12 16:45 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, linuxppc-user, erbenson


Nice that fixed the following error from quik in my machine:
# /sbin/quik -v
Second-stage loader is on /dev/sdb0
Config file is on partition 6
Fatal error: Cannot open /dev/sdb0

There are a few problems with gcc 2.95.1 though, the second stage loader
gives "Unable to open filesystem" errors reverting to the old files
fixed that.
Since my asm skills are nonexistent i can't tell if its a gcc or a quik
problem, can someone look at it ?

  Kostas Gewrgiou

On Sat, 11 Sep 1999, Benjamin Herrenschmidt wrote:

> 
> It took me a while to figure out why my printf's were displaying crazy
> results until I found out the glibc2.1 dev_t is a long long ! So this fix
> will make quik correctly recognize the partition number:
> 
> --- quik.c.old	Sat Sep 11 10:52:54 1999
> +++ quik.c	Sat Sep 11 10:52:01 1999
> @@ -521,7 +521,7 @@
>  	bootdev[7] += UNIT(st1.st_dev);
>      strcpy(spart, bootdev);
>      if (PART(st1.st_dev) != 0)
> -	sprintf(spart+8, "%d", PART(st1.st_dev));
> +	sprintf(spart+8, "%d", (int)PART(st1.st_dev));
>  
>      if (verbose)
>  	printf("Second-stage loader is on %s\n", spart);
> 
> 
> -- 
>            E-Mail: <mailto:bh40@calva.net>
> BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>
> 
> 
> 

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-09-12 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-11  9:01 quik 2.0 fix Benjamin Herrenschmidt
1999-09-12 16:45 ` Kostas Gewrgiou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).