@@ -1251,9 +1251,9 @@ Ndbfs::createAsyncFile()
1251
1251
// Print info about all open files
1252
1252
for (unsigned i = 0 ; i < theFiles.size (); i++){
1253
1253
AsyncFile* file = theFiles[i];
1254
- ndbout_c (" %2d (0x%lx ): %s" ,
1254
+ ndbout_c (" %2d (%p ): %s" ,
1255
1255
i,
1256
- ( long ) file,
1256
+ file,
1257
1257
file->isOpen () ?" OPEN" : " CLOSED" );
1258
1258
}
1259
1259
ndbout_c (" m_maxFiles: %u, theFiles.size() = %u" ,
@@ -1806,10 +1806,10 @@ Ndbfs::execDUMP_STATE_ORD(Signal* signal)
1806
1806
1807
1807
for (unsigned i = 0 ; i < theOpenFiles.size (); i++){
1808
1808
AsyncFile* file = theOpenFiles.getFile (i);
1809
- infoEvent (" %2d (0x%lx ): %s thr: %lx " , i,
1810
- ( long ) file,
1809
+ infoEvent (" %2d (%p ): %s thr: %p " , i,
1810
+ file,
1811
1811
file->theFileName .c_str (),
1812
- ( long ) file->getThread ());
1812
+ file->getThread ());
1813
1813
}
1814
1814
return ;
1815
1815
}
@@ -1818,7 +1818,7 @@ Ndbfs::execDUMP_STATE_ORD(Signal* signal)
1818
1818
1819
1819
for (unsigned i = 0 ; i < theFiles.size (); i++){
1820
1820
AsyncFile* file = theFiles[i];
1821
- infoEvent (" %2d (0x%lx ): %s" , i, ( long ) file, file->isOpen ()?" OPEN" :" CLOSED" );
1821
+ infoEvent (" %2d (%p ): %s" , i, file, file->isOpen ()?" OPEN" :" CLOSED" );
1822
1822
}
1823
1823
return ;
1824
1824
}
@@ -1828,7 +1828,7 @@ Ndbfs::execDUMP_STATE_ORD(Signal* signal)
1828
1828
1829
1829
for (unsigned i = 0 ; i < theIdleFiles.size (); i++){
1830
1830
AsyncFile* file = theIdleFiles[i];
1831
- infoEvent (" %2d (0x%lx ): %s" , i, ( long ) file, file->isOpen ()?" OPEN" :" CLOSED" );
1831
+ infoEvent (" %2d (%p ): %s" , i, file, file->isOpen ()?" OPEN" :" CLOSED" );
1832
1832
}
1833
1833
1834
1834
return ;
@@ -1888,7 +1888,7 @@ Ndbfs::execDUMP_STATE_ORD(Signal* signal)
1888
1888
ndbout << "All files: " << endl;
1889
1889
for (unsigned i = 0; i < theFiles.size(); i++){
1890
1890
AsyncFile* file = theFiles[i];
1891
- ndbout_c("%2d (0x%lx ): %s", i, (long) file, file->isOpen()?"OPEN":"CLOSED");
1891
+ ndbout_c("%2d (%p ): %s", i, file, file->isOpen()?"OPEN":"CLOSED");
1892
1892
}
1893
1893
#endif
1894
1894
}
0 commit comments