Print out state bits in hex too

This commit is contained in:
kipp%netscape.com 1998-12-15 00:16:32 +00:00
Родитель 928bd75628
Коммит 742a2097ec
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -63,9 +63,10 @@ ListFloaters(FILE* out, PRInt32 aIndent, nsVoidArray* aFloaters)
char*
nsLineBox::StateToString(char* aBuf, PRInt32 aBufSize) const
{
PR_snprintf(aBuf, aBufSize, "%s,%s",
PR_snprintf(aBuf, aBufSize, "%s,%s[0x%x]",
(mState & LINE_IS_DIRTY) ? "dirty" : "clean",
(mState & LINE_IS_BLOCK) ? "block" : "inline");
(mState & LINE_IS_BLOCK) ? "block" : "inline",
mState);
return aBuf;
}

Просмотреть файл

@ -63,9 +63,10 @@ ListFloaters(FILE* out, PRInt32 aIndent, nsVoidArray* aFloaters)
char*
nsLineBox::StateToString(char* aBuf, PRInt32 aBufSize) const
{
PR_snprintf(aBuf, aBufSize, "%s,%s",
PR_snprintf(aBuf, aBufSize, "%s,%s[0x%x]",
(mState & LINE_IS_DIRTY) ? "dirty" : "clean",
(mState & LINE_IS_BLOCK) ? "block" : "inline");
(mState & LINE_IS_BLOCK) ? "block" : "inline",
mState);
return aBuf;
}