Differences From Artifact [31405cbbf3]:
- File src/printf.c — part of check-in [734d429940] at 2014-06-30 09:13:28 on branch 16-digit-event-ids — Use the same algorithm for event-id's for UUID's as in other UI locations: Make sure that the UUID contains at least a single lower-case hex digit, with a minimum of length 10. (user: jan.nijtmans size: 35194)
To Artifact [f75f22fed3]:
- File src/printf.c — part of check-in [b6f137a01e] at 2014-06-30 19:07:35 on branch 16-digit-event-ids — Coding style adjustments. Remark (nijtmans): This commit contains more than just a coding style adjustment, changes the output of UUID's different than the proposed algorithm; if longer than 10 characters, the final non-digit char is missing. Demonstration: [/timeline?n=20&y=e]. Look at the last UUID in the timeline , it is [347871278941] but it should have been [347871278941b]! (user: mistachkin size: 35241)
| ︙ | ︙ | |||
617 618 619 620 621 622 623 |
bufpt = va_arg(ap,char*);
if( bufpt==0 ){
bufpt = "";
}else if( xtype==etDYNSTRING ){
zExtra = bufpt;
}else if( xtype==etSTRINGID ){
precision = 0;
| > | > | 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 |
bufpt = va_arg(ap,char*);
if( bufpt==0 ){
bufpt = "";
}else if( xtype==etDYNSTRING ){
zExtra = bufpt;
}else if( xtype==etSTRINGID ){
precision = 0;
while( bufpt[precision]>='0' && bufpt[precision]<='9' ){
precision++;
}
if( precision<10 ) precision=10;
}
length = StrNLen32(bufpt, limit);
if( precision>=0 && precision<length ) length = precision;
break;
}
case etBLOB: {
|
| ︙ | ︙ |