From: <0...@pe...> - 2002-10-30 06:40:49
|
On Wed, 30 Oct 2002, Bruce Allen wrote: > > I did it. My first smartmontools version was 5.0-10, which it > > also failed with "255" etc. It's miscompiling since smartsuite > > 2.1. > > I didn't understand what you meant. Does smartsuite 2.1 > produce the same effect, namely different output depending > upon the compilation options? Yes. A miscompiled (with default options) smartsuite 2.1: smartd: Device: /dev/hda, S.M.A.R.T. Attribute: 1 Changed -66 smartctl -a /dev/hda: Revision Number: 3 ... SMART Error Log: SMART Error Logging Version: 3 No Errors Logged With GCC 2.95.4: No erroneous smartd line. smartctl -a /dev/hda: Revision Number: 11 ... +( 1)Raw Read Error Rate 0x0029 100 253 020 0 SMART Error Log: SMART Error Logging Version: 1 No Errors Logged > > Brazil. BRT (GMT-3). 23:45 now. > > OK, I'm in Germany right now, GMT +1. > > I've had another idea about what is going wrong. I use a varargs function > in my code, to control where the printout goes. The > > [From > GLIBC Manual: Since the prototype doesn't specify types for > optional arguments, in a call to a variadic function the default > argument promotions are performed on the optional argument > values. This means the objects of type char or short int (whether > signed or not) are promoted to either int or unsigned int, as > appropriate.] > > So I've now explicitly converted all the print format statements into > explicit integer types (except in a couple of places where I had to go to > long longs.). Could you try the latest code snapshot from CVS, 5.0-23, > please? Just tested. Still the same. SMART Attributes Data Structure revision number: 23936 ... 5 Reallocated_Sector_Ct 0x6008 135 005 020 Old_age In_the_past 847118427 5 Reallocated_Sector_Ct <== Data Page | WARNING: PREVIOUS ATTRIBUTE HAS TWO 1 Raw_Read_Error_Rate <== Threshold Page | INCONSISTENT IDENTITIES IN THE DATA ... SMART Error Log Version: 3 No Errors Logged SMART Self-test log, version number 3 Warning - structure revision number does not match spec! Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Off-line Completed 00% 36192 > I'm off to sleep. Me too. -- 0@pervalidus.{net, {dyndns.}org} |